Documentation ¶
Index ¶
- func NewKVInterface(path string, kopts kvi.Options) (kvi.KVInterface, error)
- type BadgerKV
- func (badgerkv *BadgerKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
- func (badgerkv *BadgerKV) Close() error
- func (badgerkv *BadgerKV) Delete(id []byte) error
- func (badgerkv *BadgerKV) DeletePrefix(prefix []byte) error
- func (badgerkv *BadgerKV) Get(id []byte) ([]byte, error)
- func (badgerkv *BadgerKV) HasKey(id []byte) bool
- func (badgerkv *BadgerKV) Set(id []byte, val []byte) error
- func (badgerkv *BadgerKV) Update(u func(tx kvi.KVTransaction) error) error
- func (badgerkv *BadgerKV) View(u func(it kvi.KVIterator) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKVInterface ¶
NewKVInterface creates new BoltDB backed KVInterface at `path`
Types ¶
type BadgerKV ¶
type BadgerKV struct {
// contains filtered or unexported fields
}
BadgerKV is an implementation of the KVStore for badger
func (*BadgerKV) BulkWrite ¶
func (badgerkv *BadgerKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
BulkWrite returns a pointer to the badger bulk write method
func (*BadgerKV) DeletePrefix ¶
DeletePrefix deletes all elements in kvstore that begin with prefix `id`
Click to show internal directories.
Click to hide internal directories.