Documentation ¶
Index ¶
- func NewKVStore(dir string, wal string, fs vfs.IFS) (kv.IKVStore, error)
- type KV
- func (r *KV) BulkRemoveEntries(fk []byte, lk []byte) error
- func (r *KV) Close() error
- func (r *KV) CommitWriteBatch(wb kv.IWriteBatch) error
- func (r *KV) CompactEntries(fk []byte, lk []byte) error
- func (r *KV) DeleteValue(key []byte) error
- func (r *KV) FullCompaction() error
- func (r *KV) GetValue(key []byte, op func([]byte) error) (err error)
- func (r *KV) GetWriteBatch(ctx raftio.IContext) kv.IWriteBatch
- func (r *KV) IterateValue(fk []byte, lk []byte, inc bool, op func(key []byte, data []byte) (bool, error)) error
- func (r *KV) Name() string
- func (r *KV) SaveValue(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
KV is a pebble based IKVStore type.
func (*KV) BulkRemoveEntries ¶
BulkRemoveEntries ...
func (*KV) CommitWriteBatch ¶
func (r *KV) CommitWriteBatch(wb kv.IWriteBatch) error
CommitWriteBatch ...
func (*KV) CompactEntries ¶
CompactEntries ...
func (*KV) GetWriteBatch ¶
func (r *KV) GetWriteBatch(ctx raftio.IContext) kv.IWriteBatch
GetWriteBatch ...
Click to show internal directories.
Click to hide internal directories.