Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load decodes the settings under key onto cfg, which carries the defaults a key no source sets keeps. component names the module in the error an absent config produces.
Types ¶
type Bytes ¶
type Bytes int64
Bytes is a byte count. A config gives it as a plain number, or as a string carrying one of the binary units B, KiB, MiB and GiB, such as 128MiB.
func (*Bytes) UnmarshalText ¶
type Options ¶
type Options struct {
// EnvPrefix has to end in __, which keeps unrelated environment variables
// such as SERVICE_HOST out of the settings.
EnvPrefix string
// File defaults to config.yaml and is overridden by <EnvPrefix>CONFIG_FILE.
// A path either of them names has to exist, where config.yaml may be
// missing.
File string
}
Click to show internal directories.
Click to hide internal directories.