ussd/config/config.go

19 lines
705 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-10-22 20:35:52 +02:00
TrackURL 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() {
2024-10-24 15:21:34 +02:00
CreateAccountURL = initializers.GetEnv("CREATE_ACCOUNT_URL", "http://localhost:5003/api/v2/account/creates")
2024-10-15 22:41:16 +02:00
TrackStatusURL = initializers.GetEnv("TRACK_STATUS_URL", "https://custodial.sarafu.africa/api/track/")
BalanceURL = initializers.GetEnv("BALANCE_URL", "https://custodial.sarafu.africa/api/account/status/")
2024-10-22 20:35:52 +02:00
TrackURL = initializers.GetEnv("TRACK_URL", "http://localhost:5003/api/v2/account/status")
2024-10-15 22:41:16 +02:00
}