Versions in this module Expand all Collapse all v1 v1.10.16 Jun 3, 2022 Changes in this version + const IdealBatchSize + type AncientBatchReader interface + ReadAncients func(fn func(AncientReader) error) (err error) + type AncientReader interface + Ancient func(kind string, number uint64) ([]byte, error) + AncientRange func(kind string, start, count, maxBytes uint64) ([][]byte, error) + AncientSize func(kind string) (uint64, error) + Ancients func() (uint64, error) + HasAncient func(kind string, number uint64) (bool, error) + type AncientStore interface + type AncientWriteOp interface + Append func(kind string, number uint64, item interface{}) error + AppendRaw func(kind string, number uint64, item []byte) error + type AncientWriter interface + ModifyAncients func(func(AncientWriteOp) error) (int64, error) + Sync func() error + TruncateAncients func(n uint64) error + type Batch interface + Replay func(w KeyValueWriter) error + Reset func() + ValueSize func() int + Write func() error + type Batcher interface + NewBatch func() Batch + type Compacter interface + Compact func(start []byte, limit []byte) error + type Database interface + type HookedBatch struct + OnDelete func(key []byte) + OnPut func(key []byte, value []byte) + func (b HookedBatch) Delete(key []byte) error + func (b HookedBatch) Put(key []byte, value []byte) error + type Iteratee interface + NewIterator func(prefix []byte, start []byte) Iterator + type Iterator interface + Error func() error + Key func() []byte + Next func() bool + Release func() + Value func() []byte + type KeyValueReader interface + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + type KeyValueStore interface + type KeyValueWriter interface + Delete func(key []byte) error + Put func(key []byte, value []byte) error + type Reader interface + type Stater interface + Stat func(property string) (string, error) + type Writer interface