term/config/config.go

19 lines
396 B
Go
Raw Normal View History

package config
import (
urdtconfig "git.grassecon.net/urdt/ussd/config"
"git.grassecon.net/urdt/ussd/initializers"
)
var (
2024-12-31 11:01:15 +01:00
JetstreamURL string
JetstreamClientName string
)
func LoadConfig() {
urdtconfig.LoadConfig()
JetstreamURL = initializers.GetEnv("NATS_JETSTREAM_URL", "localhost:4222")
2024-12-31 11:01:15 +01:00
JetstreamClientName = initializers.GetEnv("NATS_JETSTREAM_CLIENT_NAME", "ussd-term")
}