Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config ucfg.Config
Config object to store hierarchical configurations into. See https://godoc.org/github.com/elastic/go-ucfg#Config
func NewConfigFrom ¶
NewConfigFrom creates a new Config object from the given input. From can be any kind of structured data(struct, map, array, slice).
type ConfigNamespace ¶
type ConfigNamespace struct {
// contains filtered or unexported fields
}
ConfigNamespace storing at most one configuration section by name and sub-section.
func (*ConfigNamespace) Config ¶
func (ns *ConfigNamespace) Config() *Config
func (*ConfigNamespace) IsSet ¶
func (ns *ConfigNamespace) IsSet() bool
func (*ConfigNamespace) Name ¶
func (ns *ConfigNamespace) Name() string
func (*ConfigNamespace) Unpack ¶
func (ns *ConfigNamespace) Unpack(cfg *Config) error
Unpack unpacks a configuration with at most one sub object. An sub object is ignored if it is disabled by setting `enabled: false`. If the configuration passed contains multiple active sub objects, Unpack will return an error.
Click to show internal directories.
Click to hide internal directories.