Versions in this module Expand all Collapse all v1 v1.0.0 Aug 5, 2026 Changes in this version + func CanonicalHost(host string) string + func IsHealthcheckRequest(err error) bool + func IsVersionRequest(err error) bool + type AuditConfig struct + File string + Log bool + MaxBytes int64 + Statements bool + func (a AuditConfig) Enabled() bool + type Config struct + Audit AuditConfig + Listen string + MaxConcurrentDBOps int + MaxExactCount int + Metrics MetricsConfig + PoolCap int + PoolIdleConns int + PoolMaxConns int + ReadStmtTimeout time.Duration + Restrict RestrictConfig + SSO SSOConfig + Security SecurityConfig + Servers []ServerConfig + Session SessionConfig + SessionQueryBudget int + SessionQueryWindow time.Duration + Storage StorageConfig + TLSCert string + TLSKey string + func Default() Config + func Load(args []string) (Config, error) + func (c Config) CookiesSecure() bool + func (c Config) ServerByName(name string) (ServerConfig, bool) + func (c Config) TLSEnabled() bool + func (c Config) Validate() error + func (c Config) Warnings() []string + type MetricsConfig struct + AllowCIDRs []string + Enabled bool + Token string + func (m MetricsConfig) Authorizes() (needToken, needNetwork bool) + type RestrictConfig struct + AllowConsole bool + AllowDDL bool + Databases []string + ReadOnly bool + func (r RestrictConfig) DatabaseAllowed(name string) bool + func (r RestrictConfig) Restricted() bool + type SSOConfig struct + AllowedDomains []string + AllowedEmails []string + ClientID string + ClientSecret string + Issuer string + RedirectURL string + Scopes []string + func (s SSOConfig) Enabled() bool + func (s SSOConfig) HasAllowlist() bool + func (s SSOConfig) PermitsIdentity(email string) bool + func (s SSOConfig) ResolvedScopes() []string + type SecurityConfig struct + AllowAdHoc bool + BlockPrivate bool + HostAllowlist []string + HostDenylist []string + LoginAccountMax int + LoginRateMax int + LoginRateWindow time.Duration + SecureCookies bool + TrustedProxy bool + TrustedProxyCIDRs []string + type ServerConfig struct + Database string + Engine string + FilePath string + Host string + Name string + Params map[string]string + Password string + Port int + SSLMode string + Socket string + User string + type SessionConfig struct + AbsoluteTimeout time.Duration + CookieName string + IdleTimeout time.Duration + type StorageConfig struct + Database string + Engine string + FilePath string + Host string + Params map[string]string + Password string + Port int + SSLMode string + Socket string + TablePrefix string + User string + func (s StorageConfig) Enabled() bool v1.0.0-rc.2 Aug 5, 2026 v1.0.0-rc.1 Aug 5, 2026