23 lines
435 B
Go
23 lines
435 B
Go
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")
|
|
}
|