Documentation ¶
Index ¶
- Constants
- func NewKVStore(config config.LogDBConfig, dir string, wal string, fs vfs.IFS) (kv.IKVStore, error)
- type Badger
- func (b *Badger) BulkRemoveEntries(firstKey []byte, lastKey []byte) error
- func (b *Badger) Close() error
- func (b *Badger) CommitWriteBatch(wb kv.IWriteBatch) error
- func (b *Badger) CompactEntries(firstKey []byte, lastKey []byte) error
- func (b *Badger) DeleteValue(key []byte) error
- func (b *Badger) FullCompaction() error
- func (b *Badger) GetValue(key []byte, op func([]byte) error) error
- func (b *Badger) GetWriteBatch(ctx raftio.IContext) kv.IWriteBatch
- func (b *Badger) IterateValue(fk []byte, lk []byte, inc bool, op func(key []byte, data []byte) (bool, error)) error
- func (b *Badger) Name() string
- func (b *Badger) RunGC()
- func (b *Badger) SaveValue(key []byte, value []byte) error
Constants ¶
View Source
const MaxKeyLength = 1024
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
func (*Badger) BulkRemoveEntries ¶
func (*Badger) CommitWriteBatch ¶
func (b *Badger) CommitWriteBatch(wb kv.IWriteBatch) error
func (*Badger) CompactEntries ¶
func (*Badger) DeleteValue ¶
func (*Badger) FullCompaction ¶
func (*Badger) GetWriteBatch ¶
func (b *Badger) GetWriteBatch(ctx raftio.IContext) kv.IWriteBatch
func (*Badger) IterateValue ¶
Click to show internal directories.
Click to hide internal directories.