Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = fmt.Errorf("key not found")
ErrKeyNotFound is the error when key is not found.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// GetValue returns the value of the key.
GetValue(ctx context.Context, key string) (interface{}, error)
GetBool(ctx context.Context, key string) (bool, error)
GetInt(ctx context.Context, key string) (int, error)
GetString(ctx context.Context, key string) (string, error)
GetStruct(ctx context.Context, key string, v interface{}) error
Watch(ctx context.Context) (chan bool, error)
}
Click to show internal directories.
Click to hide internal directories.