term/config/config.go

23 lines
435 B
Go
Raw Normal View History

package config
import (
urdtconfig "git.grassecon.net/urdt/ussd/config"
"git.grassecon.net/urdt/ussd/initializers"
)
var (
JetstreamURL string
JetstreamClientName string
)
func init() {
initializers.LoadEnvVariables()
}
func LoadConfig() {
urdtconfig.LoadConfig()
JetstreamURL = initializers.GetEnv("NATS_JETSTREAM_URL", "localhost:4222")
JetstreamClientName = initializers.GetEnv("NATS_JETSTREAM_CLIENT_NAME", "omnom")
}