Documentation
¶
Overview ¶
Package config loads and validates server configuration from a TOML file (subset parser in toml.go) with CLI-flag overrides applied on top. Precedence: defaults < config file < flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
Config is the fully-resolved server configuration.
func Default ¶
func Default() Config
Default returns the built-in defaults matching the implementation guide.
func (*Config) OriginAllowed ¶
OriginAllowed reports whether origin (scheme://host[:port]) is in the global allowlist. Matching is exact and case-insensitive on scheme/host per RFC 6454 serialization conventions.
func (*Config) OriginAllowedForApp ¶
OriginAllowedForApp reports whether origin is acceptable for the app: either globally allowlisted or on the app's own allowlist.
Click to show internal directories.
Click to hide internal directories.