Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_ACTIVE_SOURCE_TIMEOUT = 60
View Source
const DEFAULT_DB_TIMEOUT_MS = 5000
View Source
const DEFAULT_DEACTIVATOR_INTERVAL_MINS = 10
View Source
const DEFAULT_LIBRARY_TOKEN_EXPIRE_MINS = 30
View Source
const DEFAULT_PORT = 443
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotConfig ¶
type BotConfig struct { Token string `toml:"token" validate:"required"` WebhookURL string `toml:"webhookUrl" validate:"required"` CertFilePath string `toml:"certFile" validate:"required"` PrivKeyFilePath string `toml:"privKeyFile" validate:"required"` LogPath string `toml:"logPath" validate:"required"` IsDev bool `toml:"isDev"` DefaultActiveSourceTimeoutMins int `toml:"defaultActiveSourceTimeoutMins" validate:"gte=0"` DeactivatorIntervalMins int `toml:"deactivatorIntervalMins" validate:"gte=0"` Port int `toml:"port" validate:"gte=0"` LibraryTokenExpireMins int `toml:"libraryTokenExpireMins" validate:"gte=0"` }
Click to show internal directories.
Click to hide internal directories.