Versions in this module Expand all Collapse all v0 v0.6.2 Apr 3, 2024 v0.6.0 Jan 23, 2024 Changes in this version + const MaxKeyLength + const RecentBlockCount + type BackwardIter struct + func (iter *BackwardIter) Close() + func (iter *BackwardIter) Domain() ([]byte, []byte) + func (iter *BackwardIter) Key() []byte + func (iter *BackwardIter) Next() + func (iter *BackwardIter) Valid() bool + func (iter *BackwardIter) Value() int64 + type BackwardIterMem struct + func (iter *BackwardIterMem) Close() + func (iter *BackwardIterMem) Domain() ([]byte, []byte) + func (iter *BackwardIterMem) Key() []byte + func (iter *BackwardIterMem) Next() + func (iter *BackwardIterMem) Valid() bool + func (iter *BackwardIterMem) Value() int64 + type Cache struct + func NewCache() *Cache + func (cache *Cache) Get(k uint64) (v int64, ok bool) + func (cache *Cache) Set(k uint64, v int64) + type ForwardIter struct + func (iter *ForwardIter) Close() + func (iter *ForwardIter) Domain() ([]byte, []byte) + func (iter *ForwardIter) Key() []byte + func (iter *ForwardIter) Next() + func (iter *ForwardIter) Valid() bool + func (iter *ForwardIter) Value() int64 + type ForwardIterMem struct + func (iter *ForwardIterMem) Close() + func (iter *ForwardIterMem) Domain() ([]byte, []byte) + func (iter *ForwardIterMem) Key() []byte + func (iter *ForwardIterMem) Next() + func (iter *ForwardIterMem) Valid() bool + func (iter *ForwardIterMem) Value() int64 + type HeightCompactionFilter struct + func (f *HeightCompactionFilter) Filter(level int, key, val []byte) (remove bool, newVal []byte) + func (f *HeightCompactionFilter) Name() string + type Iterator = types.IteratorUI64 + type MockIndexTree struct + func NewMockIndexTree() *MockIndexTree + func (it *MockIndexTree) ActiveCount() int + func (it *MockIndexTree) BeginWrite(height int64) + func (it *MockIndexTree) Close() + func (it *MockIndexTree) Delete(key []byte) + func (it *MockIndexTree) EndWrite() + func (it *MockIndexTree) Get(key []byte) (int64, bool) + func (it *MockIndexTree) GetAtHeight(k []byte, height uint64) (int64, bool) + func (it *MockIndexTree) Init(repFn func([]byte)) error + func (it *MockIndexTree) Iterator(start, end []byte) Iterator + func (it *MockIndexTree) ReverseIterator(start, end []byte) Iterator + func (it *MockIndexTree) Set(key []byte, v int64) + func (it *MockIndexTree) SetPruneHeight(h uint64) + func (tree *MockIndexTree) SetDuringInit(b bool) + type NVTreeMem struct + func NewNVTreeMem(rocksdb *RocksDB) *NVTreeMem + func (tree *NVTreeMem) ActiveCount() int + func (tree *NVTreeMem) BeginWrite(currHeight int64) + func (tree *NVTreeMem) Close() + func (tree *NVTreeMem) Delete(k []byte) + func (tree *NVTreeMem) EndWrite() + func (tree *NVTreeMem) Get(k []byte) (int64, bool) + func (tree *NVTreeMem) GetAtHeight(k []byte, height uint64) (position int64, ok bool) + func (tree *NVTreeMem) Init(repFn func([]byte)) (err error) + func (tree *NVTreeMem) Iterator(start, end []byte) Iterator + func (tree *NVTreeMem) ReverseIterator(start, end []byte) Iterator + func (tree *NVTreeMem) Set(k []byte, v int64) + func (tree *NVTreeMem) SetDuringInit(b bool) + type RecentCache struct + func (rc *RecentCache) AllocateIfNotExist(h int64) + func (rc *RecentCache) DidNotTouchInRange(start, end int64, k uint64) bool + func (rc *RecentCache) FindFirstChangeBefore(height int64, k uint64) (v int64, foundIt bool) + func (rc *RecentCache) Prune(h int64) + type RocksDB struct + func NewRocksDB(name string, dir string) (*RocksDB, error) + func NewRocksDBWithOptions(name string, dir string, opts *gorocksdb.Options) (*RocksDB, error) + func (db *RocksDB) Close() + func (db *RocksDB) CloseOldBatch() + func (db *RocksDB) CurrBatch() types.Batch + func (db *RocksDB) DB() *gorocksdb.DB + func (db *RocksDB) Delete(key []byte) + func (db *RocksDB) DeleteSync(key []byte) + func (db *RocksDB) Get(key []byte) []byte + func (db *RocksDB) GetPruneHeight() (uint64, bool) + func (db *RocksDB) Has(key []byte) bool + func (db *RocksDB) Iterator(start, end []byte) types.Iterator + func (db *RocksDB) LockBatch() + func (db *RocksDB) NewBatch() types.Batch + func (db *RocksDB) OpenNewBatch() + func (db *RocksDB) Print() + func (db *RocksDB) ReverseIterator(start, end []byte) types.Iterator + func (db *RocksDB) Set(key []byte, value []byte) + func (db *RocksDB) SetPruneHeight(h uint64) + func (db *RocksDB) SetSync(key []byte, value []byte) + func (db *RocksDB) Stats() map[string]string + func (db *RocksDB) UnlockBatch()