Documentation ¶
Index ¶
- func AllConf() map[string]interface{}
- func GetBool(key string) bool
- func GetInt32(key string) int32
- func GetInt64(key string) int64
- func GetString(key string) string
- func Init()
- func Scan(key string, conf interface{}) error
- func ScanWithRefresh(en viper.Refreshable) error
- func SetDefault(key string, value interface{})
- type Manager
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanWithRefresh ¶
func ScanWithRefresh(en viper.Refreshable) error
func SetDefault ¶
func SetDefault(key string, value interface{})
Types ¶
type Store ¶
type Store interface { // Get retrieves a value from a K/V Store for the provided key. Get(key string) ([]byte, error) // List retrieves all keys and values under a provided key. List(key string) (remote.KVPairs, error) // Set sets the provided key to value. Set(key string, value []byte) error // Watch monitors a K/V Store for changes to key. Watch(key string, stop chan bool) <-chan *remote.Response }
Click to show internal directories.
Click to hide internal directories.