Versions in this module Expand all Collapse all v1 v1.0.1 Dec 9, 2022 v1.0.0 Nov 23, 2022 Changes in this version + const DefaultChatRouletteHour + const DefaultChatRouletteInterval + const DefaultChatRouletteWeekday + const DefaultDBMaxIdle + const DefaultDBMaxIdletime + const DefaultDBMaxLifetime + const DefaultDBMaxOpen + const DefaultServerAddr + const DefaultServerPort + var DefaultWorkerConcurrency = runtime.NumCPU() + type ChatRouletteConfig struct + Hour int + Interval string + Weekday string + type Config struct + Bot SlackBotConfig + ChatRoulette ChatRouletteConfig + Database DatabaseConfig + Dev bool + Server ServerConfig + Tracing TracingConfig + Worker WorkerConfig + func LoadConfig(path string) (*Config, error) + func (c *Config) GetAddr() string + func (c Config) Validate() error + type DBConnectionsConfig struct + MaxIdle int + MaxIdletime time.Duration + MaxLifetime time.Duration + MaxOpen int + type DBEncryptionConfig struct + Key string + PreviousKey string + func (d *DBEncryptionConfig) GetDEK() ([]byte, error) + func (d *DBEncryptionConfig) GetPreviousDEK() ([]byte, error) + type DatabaseConfig struct + Connections DBConnectionsConfig + Encryption DBEncryptionConfig + URL string + type HoneycombTracing struct + Dataset string + Team string + type JaegerTracing struct + Endpoint string + type ServerConfig struct + Address string + ClientID string + ClientSecret string + Port int + RedirectURL string + SecretKey string + SigningSecret string + func (s *ServerConfig) GetSecretKey() ([]byte, error) + type SlackBotConfig struct + AuthToken string + type TracingConfig struct + Enabled bool + Exporter TracingExporter + Honeycomb HoneycombTracing + Jaeger JaegerTracing + type TracingExporter string + const TracingExporterHoneycomb + const TracingExporterJaeger + type WorkerConfig struct + Concurrency int