Documentation ¶
Index ¶
- Variables
- func NewKVStore(config config.LogDBConfig, callback kv.LogDBCallback, dir string, wal string, ...) (kv.IKVStore, error)
- type KV
- func (r *KV) BulkRemoveEntries(fk []byte, lk []byte) (err 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() kv.IWriteBatch
- func (r *KV) IterateValue(fk []byte, lk []byte, inc bool, op func(key []byte, data []byte) (bool, error)) (err error)
- func (r *KV) Name() string
- func (r *KV) SaveValue(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PebbleLogger pebbleLogger
PebbleLogger is the logger used by pebble
Functions ¶
func NewKVStore ¶
func NewKVStore(config config.LogDBConfig, callback kv.LogDBCallback, dir string, wal string, fs vfs.IFS) (kv.IKVStore, error)
NewKVStore returns a pebble based IKVStore instance.
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 ...
Click to show internal directories.
Click to hide internal directories.