Versions in this module Expand all Collapse all v1 v1.0.0 Aug 6, 2026 Changes in this version + type Config struct + APIAllowedIPs string + APICORSEnabled bool + APICORSOrigins string + APIIPCheckEnabled bool + APIMaxBodyBytes int64 + APIRateLimit bool + APIRateLimitBurst int + APIRateLimitRPS int + APIToken string + Addr string + AdminAddr string + AdminAllowedIPs string + AdminEnabled bool + AdminIPCheckEnabled bool + AdminReadOnly bool + AdminToken string + AllowedIPs string + AuthFailureDelay time.Duration + CacheDefaultTTL time.Duration + CacheEnabled bool + CacheMaxBytes int64 + CacheMaxKeys int + D1APIToken string + D1BaseURL string + D1RetryMax int + D1RetryMaxBackoff time.Duration + D1RetryMinBackoff time.Duration + DatabaseConnMaxLife time.Duration + DatabaseMaxIdleConns int + DatabaseMaxOpenConns int + DatabaseURL string + DocAPIEnabled bool + Environment string + ExpiryCleanupEnabled bool + ExpiryCleanupInterval time.Duration + ExpiryCleanupLimit int + HTTPAddr string + HTTPEnabled bool + LogFormat string + LogLevel string + MaxConnections int + MaxRequestBytes int64 + MigrationsAuto bool + Password string + ProtectedMode bool + ReadTimeout time.Duration + RequireAuth bool + ShutdownTimeout time.Duration + StoreAPIEnabled bool + TLSCertB64 string + TLSCertFile string + TLSCertPEM string + TLSEnabled bool + TLSKeyB64 string + TLSKeyFile string + TLSKeyPEM string + TLSMinVersion string + TursoAuthToken string + WSEnabled bool + WSIdleTimeout time.Duration + WSMaxBytes int64 + WSMaxSubs int + WriteTimeout time.Duration + func Load() (*Config, error) + func (c *Config) D1Parts() (accountID, databaseID string, err error) + func (c *Config) DatabaseType() string + func (c *Config) GetAPIAllowedIPs() []string + func (c *Config) GetAPICORSOrigins() []string + func (c *Config) GetAPIToken() string + func (c *Config) GetAdminAllowedIPs() []string + func (c *Config) GetAllowedIPs() []string + func (c *Config) GetD1APIToken() string + func (c *Config) GetD1BaseURL() string + func (c *Config) GetResolvedDatabaseURL() string + func (c *Config) GetTLSMaterialSource() (string, error) + func (c *Config) GetTursoAuthToken() string + func (c *Config) IsDevelopment() bool + func (c *Config) IsProduction() bool