Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2026 Changes in this version + type CSRF struct + CookieName string + FieldName string + HeaderName string + type CapacityMode string + const CapacityModeAdvisory + const CapacityModeEnforced + type CapacityProblem struct + DBMaxConns int + Demand int + MigratePoolMax int + PlatformPoolMax int + Replicas int + ReservedAdmin int + RuntimePoolMax int + func CheckCapacity(f Framework) *CapacityProblem + func (p *CapacityProblem) Error() string + type Concurrency struct + CapacityMode CapacityMode + HTTPMaxInFlight int + MigratePoolMax int + Overload Overload + PlatformMaxInFlight int + PlatformPoolMax int + Replicas int + ReservedAdmin int + RuntimePoolMax int + WorkerMaxJobs int + func ConcurrencyDefaults() Concurrency + type CookieDefaults struct + SameSite string + Secure bool type Framework + Concurrency Concurrency + Privileged Privileged + Security Security + Webhook Webhook + type Overload struct + RetryAfter time.Duration + Status int + type Privileged map[string]PrivilegedGrant + func (p Privileged) Validate() error + type PrivilegedGrant struct + AllowRelTypes []string + AllowRuleKeys []string + type Security struct + CSP string + CSRF CSRF + Cookie CookieDefaults + Profile SecurityProfile + func DefaultSecurity() Security + func (s Security) Validate() error + type SecurityProfile string + const SecurityProfileAPI + const SecurityProfileBrowser + func (p SecurityProfile) Valid() bool + type Webhook struct + Outbound WebhookOutbound + type WebhookOutbound struct + AllowedCIDRs []string + AllowedHosts []string + SSRFProtectionDisabled bool v1.0.0 Jul 6, 2026 Changes in this version + const SchemaVersion + func Schema[T any]() ([]byte, error) + type DB struct + DSN Secret + MigrateDSN Secret + PlatformDSN Secret + type Env string + const EnvDev + const EnvLocal + const EnvProd + const EnvStage + func (e Env) IsProd() bool + func (e Env) Valid() bool + type Fingerprint [sha256.Size]byte + func FingerprintOf(v any) (Fingerprint, error) + func Load[T any](opts Options) (T, Fingerprint, error) + func (f Fingerprint) Short() string + func (f Fingerprint) String() string + type Framework struct + DB DB + Environment Env + HTTP HTTP + Log Log + SchemaVersion int + Telemetry Telemetry + func Defaults() Framework + func (f Framework) CheckSharedDrift(expected string) error + func (f Framework) SharedFingerprint() (Fingerprint, error) + func (f Framework) SharedSection() SharedSection + func (f Framework) Validate() error + type HTTP struct + Addr string + CORSAllowedOrigins []string + MaxBodyBytes int64 + RateLimit RateLimit + ReadHeaderTimeout time.Duration + RequestTimeout time.Duration + type Layer string + const LayerBaseFile + const LayerDefault + const LayerEnvFile + const LayerEnvVar + const LayerFlag + const LayerSecret + type Loaded struct + Config T + Fingerprint Fingerprint + Provenance Provenance + Warnings []string + func LoadDetailed[T any](opts Options) (Loaded[T], error) + type Log struct + Format string + Level string + type MapView map[string]any + func (m MapView) Decode(out any) error + type ModuleView interface + Decode func(out any) error + type Namespaces map[string]MapView + type Options struct + BaseFile string + EnvFile string + EnvPrefix string + Environ []string + Flags map[string]string + Secrets secrets.Provider + type Pool struct + MaxConns int + QueryTimeout time.Duration + type Provenance map[string]Layer + type RateLimit struct + Burst int + Disabled bool + RequestsPerSecond float64 + type Secret struct + func NewSecret(ref, value string) Secret + func (s *Secret) UnmarshalText(b []byte) error + func (s Secret) Format(f fmt.State, verb rune) + func (s Secret) GoString() string + func (s Secret) IsZero() bool + func (s Secret) LogValue() slog.Value + func (s Secret) MarshalJSON() ([]byte, error) + func (s Secret) MarshalText() ([]byte, error) + func (s Secret) Ref() string + func (s Secret) Reveal() string + func (s Secret) String() string + type SharedSection struct + DB DB + Environment Env + SchemaVersion int + type Telemetry struct + TraceSampleRatio float64