Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIllegalKey = errors.New("illegal key") ErrKeyNotExists = errors.New("key not exists") )
Functions ¶
Types ¶
type DataSource ¶
type DataSource interface { Get(key string) (string, error) Set(key, val string) error JSON() ([]byte, error) Watch() (chan struct{}, chan error) Close() error }
func Provider ¶
func Provider(args Args) (DataSource, error)
Click to show internal directories.
Click to hide internal directories.