Documentation
¶
Overview ¶
Package kv provides a generic interface around kv stores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KV interface { // Get gets the value of the given key. Get(string) ([]byte, error) // Put puts the value of the given key. Put(string, []byte) error // Exists reports whether the given key exists. Exists(string) (bool, error) // List lists all the keys under the given prefix. List(string) (map[string][]byte, error) // NewLocker creates a new Locker. NewLocker(string) Locker // NewWatcher create a new Watcher. NewWatcher(string) Watcher // Delete deletes the given key. Delete(string) error // DeleteTree deletes all the keys under the given prefix. DeleteTree(string) error }
KV represents a kv store.
Click to show internal directories.
Click to hide internal directories.