Versions in this module Expand all Collapse all v1 v1.5.0 Oct 27, 2024 v1.4.0 Oct 17, 2024 v1.3.1 Oct 4, 2024 v1.3.0 Sep 30, 2024 v1.2.0 Aug 24, 2024 Changes in this version + const DefaultChatRouletteConnectionMode type ChatRouletteConfig + ConnectionMode string v1.1.0 Aug 18, 2024 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