Documentation ¶
Overview ¶
Package kvdb is kvdb module
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
type Kv ¶
type Kv struct {
// contains filtered or unexported fields
}
type Provider ¶
type Provider interface { // Get returns value by key Get(key string) ([]byte, bool) // Put saves the key-values Put(key string, value []byte) error // Has return true if the given key exist, or return false if none exists Has(key string) (bool, error) // Delete deletes the given key Delete(key string) error // WriteBatch writes a batch in an atomic operation WriteBatch(batch *Batcher) error Close() }
Provider defines kv db provider interface
Click to show internal directories.
Click to hide internal directories.