Documentation
¶
Overview ¶
Package config parses the WAVEFRONT_* environment once at startup into an immutable Config. Required vars missing ⇒ MissingError; malformed values ⇒ InvalidError (both name the offending var). Load uses the functional-options pattern: production calls config.Load(); tests inject a fixed environment with config.Load(config.WithLookup(fake)).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type InvalidError ¶
func (*InvalidError) Error ¶
func (e *InvalidError) Error() string
func (*InvalidError) Unwrap ¶
func (e *InvalidError) Unwrap() error
type Lookuper ¶
Lookuper resolves an environment variable: its value and whether it is set. It matches the signature of os.LookupEnv.
type MissingError ¶
type MissingError struct{ Var string }
func (*MissingError) Error ¶
func (e *MissingError) Error() string
Click to show internal directories.
Click to hide internal directories.