Documentation ¶
Index ¶
- Constants
- type Store
- func (rs *Store) AddListeners(key types.StoreKey, listeners []types.WriteListener)
- func (rs *Store) CacheMultiStore() types.CacheMultiStore
- func (rs *Store) CacheMultiStoreWithVersion(version int64) (types.CacheMultiStore, error)
- func (rs *Store) CacheWrap() types.CacheWrap
- func (rs *Store) CacheWrapWithTrace(_ io.Writer, _ types.TraceContext) types.CacheWrap
- func (rs *Store) Close() error
- func (rs *Store) Commit() types.CommitID
- func (rs *Store) GetCommitKVStore(key types.StoreKey) types.CommitKVStore
- func (rs *Store) GetCommitStore(key types.StoreKey) types.CommitStore
- func (rs *Store) GetKVStore(key types.StoreKey) types.KVStore
- func (rs *Store) GetPruning() pruningtypes.PruningOptions
- func (rs *Store) GetStore(key types.StoreKey) types.Store
- func (rs *Store) GetStoreByName(name string) types.Store
- func (rs *Store) GetStoreType() types.StoreType
- func (rs *Store) LastCommitID() types.CommitID
- func (rs *Store) LatestVersion() int64
- func (rs *Store) ListeningEnabled(key types.StoreKey) bool
- func (rs *Store) LoadLatestVersion() error
- func (rs *Store) LoadLatestVersionAndUpgrade(upgrades *types.StoreUpgrades) error
- func (rs *Store) LoadVersion(ver int64) error
- func (rs *Store) LoadVersionAndUpgrade(version int64, upgrades *types.StoreUpgrades) error
- func (rs *Store) MountStoreWithDB(key types.StoreKey, typ types.StoreType, _ dbm.DB)
- func (rs *Store) PruneSnapshotHeight(height int64)
- func (rs *Store) Query(req abci.RequestQuery) abci.ResponseQuery
- func (rs *Store) Restore(height uint64, format uint32, protoReader protoio.Reader) (snapshottypes.SnapshotItem, error)
- func (rs *Store) RollbackToVersion(target int64) error
- func (rs *Store) SetIAVLCacheSize(size int)
- func (rs *Store) SetIAVLDisableFastNode(disable bool)
- func (rs *Store) SetInitialVersion(version int64) error
- func (rs *Store) SetInterBlockCache(c types.MultiStorePersistentCache)
- func (rs *Store) SetLazyLoading(lazyLoading bool)
- func (rs *Store) SetMemIAVLOptions(opts memiavl.Options)
- func (rs *Store) SetPruning(pruningtypes.PruningOptions)
- func (rs *Store) SetSnapshotInterval(snapshotInterval uint64)
- func (rs *Store) SetTracer(w io.Writer) types.MultiStore
- func (rs *Store) SetTracingContext(types.TraceContext) types.MultiStore
- func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error
- func (rs *Store) TracingEnabled() bool
- func (rs *Store) WorkingHash() []byte
Constants ¶
const CommitInfoFileName = "commit_infos"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddListeners ¶
func (rs *Store) AddListeners(key types.StoreKey, listeners []types.WriteListener)
Implements interface CommitMultiStore
func (*Store) CacheMultiStore ¶
func (rs *Store) CacheMultiStore() types.CacheMultiStore
Implements interface MultiStore
func (*Store) CacheMultiStoreWithVersion ¶
func (rs *Store) CacheMultiStoreWithVersion(version int64) (types.CacheMultiStore, error)
Implements interface MultiStore used to createQueryContext, abci_query or grpc query service.
func (*Store) CacheWrapWithTrace ¶
Implements interface CacheWrapper
func (*Store) GetCommitKVStore ¶
func (rs *Store) GetCommitKVStore(key types.StoreKey) types.CommitKVStore
Implements interface CommitMultiStore
func (*Store) GetCommitStore ¶
func (rs *Store) GetCommitStore(key types.StoreKey) types.CommitStore
Implements interface CommitMultiStore
func (*Store) GetKVStore ¶
Implements interface MultiStore
func (*Store) GetPruning ¶
func (rs *Store) GetPruning() pruningtypes.PruningOptions
Implements interface Committer
func (*Store) GetStoreByName ¶
getStoreByName performs a lookup of a StoreKey given a store name typically provided in a path. The StoreKey is then used to perform a lookup and return a Store. If the Store is wrapped in an inter-block cache, it will be unwrapped prior to being returned. If the StoreKey does not exist, nil is returned.
func (*Store) GetStoreType ¶
Implements interface Store
func (*Store) LastCommitID ¶
Implements interface Committer
func (*Store) LatestVersion ¶
Implements interface MultiStore
func (*Store) ListeningEnabled ¶
Implements interface CommitMultiStore
func (*Store) LoadLatestVersion ¶
Implements interface CommitMultiStore used by normal node startup.
func (*Store) LoadLatestVersionAndUpgrade ¶
func (rs *Store) LoadLatestVersionAndUpgrade(upgrades *types.StoreUpgrades) error
Implements interface CommitMultiStore
func (*Store) LoadVersion ¶
Implements interface CommitMultiStore used by export cmd
func (*Store) LoadVersionAndUpgrade ¶
func (rs *Store) LoadVersionAndUpgrade(version int64, upgrades *types.StoreUpgrades) error
Implements interface CommitMultiStore used by node startup with UpgradeStoreLoader
func (*Store) MountStoreWithDB ¶
Implements interface CommitMultiStore
func (*Store) PruneSnapshotHeight ¶
Implements interface Snapshotter not needed, memiavl manage its own snapshot/pruning strategy
func (*Store) Query ¶
func (rs *Store) Query(req abci.RequestQuery) abci.ResponseQuery
Implements interface Queryable
func (*Store) Restore ¶
func (rs *Store) Restore(height uint64, format uint32, protoReader protoio.Reader) (snapshottypes.SnapshotItem, error)
Implements interface Snapshotter
func (*Store) RollbackToVersion ¶
RollbackToVersion delete the versions after `target` and update the latest version. it should only be called in standalone cli commands.
func (*Store) SetIAVLCacheSize ¶
Implements interface CommitMultiStore
func (*Store) SetIAVLDisableFastNode ¶
Implements interface CommitMultiStore
func (*Store) SetInitialVersion ¶
Implements interface CommitMultiStore used by InitChain when the initial height is bigger than 1
func (*Store) SetInterBlockCache ¶
func (rs *Store) SetInterBlockCache(c types.MultiStorePersistentCache)
SetInterBlockCache is a noop here because memiavl do caching on it's own, which works well with zero-copy.
func (*Store) SetLazyLoading ¶
Implements interface CommitMultiStore
func (*Store) SetMemIAVLOptions ¶
func (*Store) SetPruning ¶
func (rs *Store) SetPruning(pruningtypes.PruningOptions)
Implements interface Committer
func (*Store) SetSnapshotInterval ¶
Implements interface Snapshotter not needed, memiavl manage its own snapshot/pruning strategy
func (*Store) SetTracer ¶
func (rs *Store) SetTracer(w io.Writer) types.MultiStore
Implements interface MultiStore
func (*Store) SetTracingContext ¶
func (rs *Store) SetTracingContext(types.TraceContext) types.MultiStore
Implements interface MultiStore
func (*Store) TracingEnabled ¶
Implements interface MultiStore
func (*Store) WorkingHash ¶ added in v0.0.5
WorkingHash returns the app hash of the working tree,
Implements interface Committer.