Documentation ¶
Index ¶
- func NewKVInterface(path string, opts kvi.Options) (kvi.KVInterface, error)
- type LevelKV
- func (l *LevelKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
- func (l *LevelKV) Close() error
- func (l *LevelKV) Delete(id []byte) error
- func (l *LevelKV) DeletePrefix(prefix []byte) error
- func (l *LevelKV) Get(id []byte) ([]byte, error)
- func (l *LevelKV) HasKey(id []byte) bool
- func (l *LevelKV) Set(id []byte, val []byte) error
- func (l *LevelKV) Update(u func(tx kvi.KVTransaction) error) error
- func (l *LevelKV) View(u func(it kvi.KVIterator) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKVInterface ¶
NewKVInterface creates new LevelDB backed KVInterface at `path`
Types ¶
type LevelKV ¶
type LevelKV struct {
// contains filtered or unexported fields
}
LevelKV implements the generic key value interface using the leveldb library
func (*LevelKV) BulkWrite ¶
func (l *LevelKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
BulkWrite is a copy of Update, with no special function yet...
func (*LevelKV) DeletePrefix ¶
DeletePrefix deletes all elements in kvstore that begin with prefix `id`
Click to show internal directories.
Click to hide internal directories.