Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface { // Values provide the reader.Values interface reader.Values // Init the config Init(opts ...Option) error // Options in the config Options() *Options // Close Stop the config loader Close() error // Load config sources Load(source ...source.Source) error }
Config is an interface abstraction for dynamic configuration
var ( //DefaultConfig Default Config Manager DefaultConfig Config )
type Option ¶
type Option func(o *Options)
Option is the decorators func of change options variable
func WithLoader ¶
WithLoader sets the loader for manager config
func WithSource ¶
WithSource appends a source to list of sources
Click to show internal directories.
Click to hide internal directories.