Fix naming and typos

This commit is contained in:
Senad Uka
2021-09-20 13:30:35 +02:00
parent c6102ec199
commit 58f003ec99
7 changed files with 13 additions and 19 deletions

View File

@@ -9,16 +9,14 @@ func Load() {
AppConfig = Config{
Service: Service{
Port: getEnv("OPENFIRE_PORT", "5222"),
Address: mustGetEnv("OPENFIRE_ADRESS"),
Domain: mustGetEnv("OPENFIRE_DOMAIN"),
Port: getEnv("OPENFIRE_PORT", "5222"),
},
Credentials: Credentials{
CredentialsFileLocation: getEnv("CREDENTIALS_FILE_LOCATION", "input.json"),
},
GeneralOptions: GeneralOptions{
DelayBetweenMassages: int64(getEnvInt("MASSAGE_DELAY", 120000000000)),
StatusMessageDelay: getEnvInt("STATUS_MASSAGE_DELAY", 10),
PresenceStatusDelay: int64(getEnvInt("PRESENCE_STATUS_DELAY", 2) * 60),
CommandReplyDelay: getEnvInt("COMMAND_REPLY_DELAY", 10),
},
}
}

View File

@@ -21,6 +21,6 @@ type Credentials struct {
// GeneralOptions contains information for general configuration options
type GeneralOptions struct {
DelayBetweenMassages int64
StatusMessageDelay int
PresenceStatusDelay int64
CommandReplyDelay int
}