Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotFound = leveldb.ErrNotFound
ErrorNotFound signal error for not found
Functions ¶
This section is empty.
Types ¶
type KVIterator ¶
type KVIterator interface { Key() string Value() []byte Next() bool Prev() bool Seek(string) bool Last() bool Release() }
KVIterator interface for key value iterators
type KVStore ¶
type KVStore interface { Init() error Put(key string, val []byte) error Get(key string) ([]byte, error) Delete(key string) error NewIterator() KVIterator NewIteratorWithRange(keyRange interface{}) KVIterator Close() error }
KVStore interface for key value stores
func NewLDBKeyValueStore ¶
NewLDBKeyValueStore construct a new LevelDB instance of a KV store
Click to show internal directories.
Click to hide internal directories.