Files
old-xmpploadtesting/config/config.go

23 lines
517 B
Go
Raw Permalink Normal View History

2021-09-14 19:25:37 +02:00
package config
// AppConfig contains application configuration
var AppConfig Config
// Load application configuration
func Load() {
AppConfig = Config{
Service: Service{
2021-09-20 13:30:35 +02:00
Port: getEnv("OPENFIRE_PORT", "5222"),
2021-09-14 19:25:37 +02:00
},
Credentials: Credentials{
CredentialsFileLocation: getEnv("CREDENTIALS_FILE_LOCATION", "input.json"),
},
GeneralOptions: GeneralOptions{
2021-09-20 13:30:35 +02:00
PresenceStatusDelay: int64(getEnvInt("PRESENCE_STATUS_DELAY", 2) * 60),
CommandReplyDelay: getEnvInt("COMMAND_REPLY_DELAY", 10),
2021-09-14 19:25:37 +02:00
},
}
}