2021-09-14 19:25:37 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
// Config stores application configuration
|
|
|
|
|
type Config struct {
|
|
|
|
|
Service Service
|
|
|
|
|
Credentials Credentials
|
|
|
|
|
GeneralOptions GeneralOptions
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Service contains configuration for service
|
|
|
|
|
type Service struct {
|
|
|
|
|
Port string
|
|
|
|
|
Address string
|
|
|
|
|
Domain string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Credentials contains information about client credentials
|
|
|
|
|
type Credentials struct {
|
|
|
|
|
CredentialsFileLocation string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GeneralOptions contains information for general configuration options
|
|
|
|
|
type GeneralOptions struct {
|
|
|
|
|
DelayBetweenMassages int64
|
2021-09-17 17:35:08 +02:00
|
|
|
StatusMessageDelay int
|
2021-09-14 19:25:37 +02:00
|
|
|
}
|