Documentation ¶
Index ¶
- func NewKVInterface(path string, opts kvi.Options) (kvi.KVInterface, error)
- type BoltKV
- func (boltkv *BoltKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
- func (boltkv *BoltKV) Close() error
- func (boltkv *BoltKV) Delete(id []byte) error
- func (boltkv *BoltKV) DeletePrefix(id []byte) error
- func (boltkv *BoltKV) Get(id []byte) ([]byte, error)
- func (boltkv *BoltKV) HasKey(id []byte) bool
- func (boltkv *BoltKV) Set(id []byte, val []byte) error
- func (boltkv *BoltKV) Update(u func(tx kvi.KVTransaction) error) error
- func (boltkv *BoltKV) 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 BoltKV ¶
type BoltKV struct {
// contains filtered or unexported fields
}
BoltKV is an implementation of the KVStore for bolt
func (*BoltKV) BulkWrite ¶
func (boltkv *BoltKV) BulkWrite(u func(tx kvi.KVBulkWrite) error) error
BulkWrite is a replication of the regular update, no special code for bulk writes
func (*BoltKV) DeletePrefix ¶
DeletePrefix deletes all elements in kvstore that begin with prefix `id`
Click to show internal directories.
Click to hide internal directories.