28 lines
610 B
Go
28 lines
610 B
Go
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 {
|
|
PresenceStatusDelay int64
|
|
CommandReplyDelay int
|
|
ExecuteSingleStatusMessage bool
|
|
}
|