Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Environment ¶
func Environment() string
func SetEnvironment ¶
func SetEnvironment(env string)
Types ¶
type Completable ¶
type Completable interface { // Complete performs any required transformations on the configuration, // e.g. filling a map[string]X field from an []X field with keys. // It is expected to modify the configuration in place. // The fieldPath parameter can be used to create error messages. Complete(fldPath *field.Path) error }
type Config ¶
type Config struct { }
func LoadFromBytes ¶
LoadFromBytes builds the config from multiple raw YAML byte slices. It merges the configs together, with later configs overriding earlier ones.
func LoadFromFiles ¶
LoadFromFiles builds the config from multiple YAML files.
func (*Config) Complete ¶
Complete completes the config by calling the Complete() method on each field that implements the Completable interface.
type Defaultable ¶
type Validatable ¶
Click to show internal directories.
Click to hide internal directories.