Documentation ¶
Index ¶
- func Close()
- func Get(pattern string, def ...interface{}) value.Value
- func GetConfigurator() configurator.Configurator
- func Has(pattern string) bool
- func Load(ctx context.Context, source string, file ...string) ([]*configurator.Configuration, error)
- func Match(patterns ...string) configurator.Matcher
- func NewConfigurator(sources ...configurator.Source) configurator.Configurator
- func Set(pattern string, value interface{}) error
- func SetConfigurator(configurator configurator.Configurator)
- func SetDefaultConfigurator()
- func SetSource(sources ...configurator.Source)
- func Store(ctx context.Context, source string, file string, content interface{}, ...) error
- func Watch(cb configurator.WatchCallbackFunc, names ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, source string, file ...string) ([]*configurator.Configuration, error)
Load 加载配置项
func NewConfigurator ¶
func NewConfigurator(sources ...configurator.Source) configurator.Configurator
NewConfigurator 新建配置器
func SetConfigurator ¶
func SetConfigurator(configurator configurator.Configurator)
SetConfigurator 设置配置器
func SetDefaultConfigurator ¶
func SetDefaultConfigurator()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.