Documentation ¶
Overview ¶
Package conf is an interface for dynamic configuration.
Index ¶
- func AddWatcher(key string, f func(types.ConfigWatchEvent)) error
- func Bytes() []byte
- func DelWatcher(key string, f func(types.ConfigWatchEvent)) error
- func Get(key string) types.ConfigValue
- func GetBool(key string, def ...bool) bool
- func GetDuration(key string, def ...time.Duration) time.Duration
- func GetFloat64(key string, def ...float64) float64
- func GetInt(key string, def ...int) int
- func GetInt64(key string, def ...int64) int64
- func GetMap(key string, def ...map[string]interface{}) map[string]interface{}
- func GetString(key string, def ...string) string
- func GetStringMap(key string, def ...map[string]string) map[string]string
- func GetStringSlice(key string, def ...[]string) []string
- func LoadSource(sources ...types.ConfigSource) error
- func NewConfig(keyDelimiter string) types.Config
- func Scan(key string, val interface{}) error
- func Set(key string, val interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWatcher ¶
func AddWatcher(key string, f func(types.ConfigWatchEvent)) error
func DelWatcher ¶
func DelWatcher(key string, f func(types.ConfigWatchEvent)) error
func Get ¶
func Get(key string) types.ConfigValue
func GetFloat64 ¶
func GetStringSlice ¶
func LoadSource ¶
func LoadSource(sources ...types.ConfigSource) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.