Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + const FromBack + const FromBoth + const FromMem + var ErrIterReleased = errors.New("leveldb/memdb: iterator released") + var ErrNotFound = errors.ErrNotFound + type JoinIter struct + func NewJoinIter(memIter, backendIter common.StoreIterator) *JoinIter + func (iter *JoinIter) Error() error + func (iter *JoinIter) First() bool + func (iter *JoinIter) Key() []byte + func (iter *JoinIter) Next() bool + func (iter *JoinIter) Release() + func (iter *JoinIter) Value() []byte + type KeyOrigin byte + type MemDB struct + func NewMemDB(capacity int, kvNum int) *MemDB + func (db *MemDB) DumpToDot() string + func (p *MemDB) Capacity() int + func (p *MemDB) Delete(key []byte) + func (p *MemDB) Find(key []byte) (rkey, value []byte, err error) + func (p *MemDB) ForEach(f func(key, val []byte)) + func (p *MemDB) Free() int + func (p *MemDB) Get(key []byte) (value []byte, unkown bool) + func (p *MemDB) Len() int + func (p *MemDB) NewIterator(slice *util.Range) iterator.Iterator + func (p *MemDB) Put(key []byte, value []byte) + func (p *MemDB) Reset() + func (p *MemDB) Size() int + type OverlayDB struct + func NewOverlayDB(store common.PersistStore) *OverlayDB + func (self *OverlayDB) ChangeHash() comm.Uint256 + func (self *OverlayDB) CommitTo() + func (self *OverlayDB) Delete(key []byte) + func (self *OverlayDB) Error() error + func (self *OverlayDB) Get(key []byte) (value []byte, err error) + func (self *OverlayDB) GetWriteSet() *MemDB + func (self *OverlayDB) NewIterator(key []byte) common.StoreIterator + func (self *OverlayDB) Put(key []byte, value []byte) + func (self *OverlayDB) Reset() + func (self *OverlayDB) SetError(err error)