Documentation ¶
Index ¶
- func GetBool(key string) bool
- func GetDuration(key string) time.Duration
- func GetFloat64(key string) float64
- func GetInt(key string) int
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetIntSlice(key string) []int
- func GetString(key string) string
- func GetStringMap(key string) map[string]interface{}
- func GetStringMapString(key string) map[string]string
- func GetStringSlice(key string) []string
- func GetTime(key string) time.Time
- func GetUint(key string) uint
- func GetUint32(key string) uint32
- func GetUint64(key string) uint64
- func WatchVariable(key string, cb WatcherCallback) error
- type Value
- type WatcherCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDuration ¶
GetDuration returns the value associated with the key as a duration.
func GetFloat64 ¶
GetFloat64 returns the value associated with the key as a float64.
func GetIntSlice ¶
GetIntSlice returns the value associated with the key as a slice of int values.
func GetStringMap ¶
GetStringMap returns the value associated with the key as a map of interfaces.
func GetStringMapString ¶
GetStringMapString returns the value associated with the key as a map of strings.
func GetStringSlice ¶
GetStringSlice returns the value associated with the key as a slice of strings.
func WatchVariable ¶
func WatchVariable(key string, cb WatcherCallback) error
WatchVariable allows to set a callback func on a specific variable change.
Types ¶
type WatcherCallback ¶
type WatcherCallback = config.WatcherCallback
WatcherCallback is a callback function for a variable watcher.
Click to show internal directories.
Click to hide internal directories.