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
// Start config main loop
Start() error
// Options in the config
Options() *Options
// Close Stop the config loader
Close() error
// Watch start reload watch
Watch(OnReloadCallBack)
// Load config sources
Load(source ...source.Source) error
}
Config is an interface abstraction for dynamic configuration
var ( //DefaultConfig Default Config Manager DefaultConfig Config )
type OnReloadCallBack ¶ added in v0.4.34
type OnReloadCallBack func(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.