Versions in this module Expand all Collapse all v0 v0.2.0 Jul 30, 2026 Changes in this version + type SchemaConfig struct + Identity string + Nestorage string + Nestova string + func LoadSchemas() SchemaConfig + func (s SchemaConfig) Validate() []error v0.1.0 Jul 22, 2026 Changes in this version + const DefaultHSTSMaxAge + const DevEncryptionKey + const DevSessionSecret + const EnvDev + const EnvProd + const EnvTest + func AppEnv() string + func Bool(key string, fallback bool) (bool, error) + func Duration(key string, fallback time.Duration) (time.Duration, error) + func Int32(key string, fallback int32) (int32, error) + func Int64(key string, fallback int64) (int64, error) + func LoadDotenv() []error + func ServerAddrFromEnv() string + func String(key, fallback string) string + func ValidateAppEnv(env string) []error + type CacheConfig struct + Dir string + func LoadCache() CacheConfig + func (c CacheConfig) Validate() []error + type CryptoConfig struct + EncryptionKey string + func LoadCrypto() CryptoConfig + func (c CryptoConfig) Key() ([]byte, error) + func (c CryptoConfig) Validate(env string) []error + type DBConfig struct + ConnTimeout time.Duration + DSN string + MaxConns int32 + MigrateDSN string + PoolMode DBPoolMode + Provider DBProvider + SSLRootCert string + func LoadDB() (DBConfig, []error) + func (d DBConfig) Validate() []error + type DBPoolMode string + const DBPoolModeSession + const DBPoolModeTransaction + type DBProvider string + const DBProviderPostgres + const DBProviderSupabase + type EmailConfig struct + AccessKeyID string + Enabled bool + FromAddress string + Region string + SecretAccessKey string + func LoadEmail() (EmailConfig, []error) + func (e EmailConfig) Validate() []error + type HSTSConfig struct + Enabled bool + IncludeSubdomains bool + MaxAge time.Duration + MaxAgeSet bool + Preload bool + func LoadHSTS() (HSTSConfig, []error) + func (h HSTSConfig) EffectiveMaxAge() time.Duration + func (h HSTSConfig) Validate() []error + type S3Config struct + AccessKeyID string + Bucket string + Endpoint string + PresignTTL time.Duration + Region string + SecretAccessKey string + UsePathStyle bool + func LoadS3() (S3Config, []error) + func (s S3Config) Validate() []error + type SMSConfig struct + AccessKeyID string + Enabled bool + OriginationIdentity string + Region string + RetryMaxAttempts int + SecretAccessKey string + func LoadSMS() (SMSConfig, []error) + func (s SMSConfig) Validate() []error + type ServerConfig struct + Addr string + PublicBaseURL string + RequestTimeout time.Duration + TrustedProxies string + func LoadServer() (ServerConfig, []error) + func (s ServerConfig) TrustedProxyPrefixes() []netip.Prefix + func (s ServerConfig) Validate() []error + type SessionConfig struct + Lifetime time.Duration + Secret string + Secure bool + func LoadSession(env string) (SessionConfig, []error) + func (s SessionConfig) Validate(env string) []error + type TLSConfig struct + CertFile string + KeyFile string + func LoadTLS() TLSConfig + func (t TLSConfig) Enabled() bool + func (t TLSConfig) Validate() []error