Documentation ¶
Index ¶
- type Store
- func (st *Store) CacheWrap(k types.StoreKey) types.CacheWrap
- func (st *Store) CacheWrapWithListeners(k types.StoreKey, listeners []types.WriteListener) types.CacheWrap
- func (st *Store) CacheWrapWithTrace(k types.StoreKey, w io.Writer, tc types.TraceContext) types.CacheWrap
- func (st *Store) Commit(_ bool) types.CommitID
- func (st *Store) Delete(key []byte)
- func (st *Store) Get(key []byte) []byte
- func (st *Store) GetPruning() types.PruningOptions
- func (st *Store) GetStoreType() types.StoreType
- func (st *Store) GetWorkingHash() ([]byte, error)
- func (st *Store) Has(key []byte) bool
- func (st *Store) Iterator(start, end []byte) types.Iterator
- func (st *Store) LastCommitID() types.CommitID
- func (st *Store) PopChangeSet() iavl.ChangeSet
- func (st *Store) Query(req abci.RequestQuery) (res abci.ResponseQuery)
- func (st *Store) ReverseIterator(start, end []byte) types.Iterator
- func (st *Store) Set(key, value []byte)
- func (st *Store) SetInitialVersion(version int64)
- func (st *Store) SetPruning(_ types.PruningOptions)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store Implements types.KVStore and CommitKVStore.
func (*Store) CacheWrapWithListeners ¶
func (*Store) CacheWrapWithTrace ¶
func (st *Store) CacheWrapWithTrace(k types.StoreKey, w io.Writer, tc types.TraceContext) types.CacheWrap
CacheWrapWithTrace implements the Store interface.
func (*Store) Delete ¶
Implements types.KVStore.
we assume Delete is only called in `Commit`, so the written state is only visible after commit.
func (*Store) GetPruning ¶
func (st *Store) GetPruning() types.PruningOptions
SetPruning panics as pruning options should be provided at initialization since IAVl accepts pruning options directly.
func (*Store) GetWorkingHash ¶
func (*Store) LastCommitID ¶
func (*Store) PopChangeSet ¶
PopChangeSet returns the change set and clear it
func (*Store) Query ¶
func (st *Store) Query(req abci.RequestQuery) (res abci.ResponseQuery)
func (*Store) Set ¶
Implements types.KVStore.
we assume Set is only called in `Commit`, so the written state is only visible after commit.
func (*Store) SetInitialVersion ¶
SetInitialVersion sets the initial version of the IAVL tree. It is used when starting a new chain at an arbitrary height. implements interface StoreWithInitialVersion
func (*Store) SetPruning ¶
func (st *Store) SetPruning(_ types.PruningOptions)
SetPruning panics as pruning options should be provided at initialization since IAVl accepts pruning options directly.