ussd/config/config.go

17 lines
588 B
Go
Raw Normal View History

2024-08-26 11:09:48 +02:00
package config
2024-10-15 22:41:16 +02:00
import "git.grassecon.net/urdt/ussd/initializers"
2024-08-26 11:09:48 +02:00
2024-10-15 22:41:16 +02:00
var (
CreateAccountURL string
TrackStatusURL string
BalanceURL string
2024-08-26 12:38:14 +02:00
)
2024-08-26 11:09:48 +02:00
2024-10-15 22:41:16 +02:00
// LoadConfig initializes the configuration values after environment variables are loaded.
func LoadConfig() {
CreateAccountURL = initializers.GetEnv("CREATE_ACCOUNT_URL", "https://custodial.sarafu.africa/api/account/create")
TrackStatusURL = initializers.GetEnv("TRACK_STATUS_URL", "https://custodial.sarafu.africa/api/track/")
BalanceURL = initializers.GetEnv("BALANCE_URL", "https://custodial.sarafu.africa/api/account/status/")
}