Documentation ¶
Index ¶
- type Store
- func (cms Store) CacheMultiStore() types.CacheMultiStore
- func (cms Store) CacheWrap() types.CacheWrap
- func (cms Store) CacheWrapWithTrace(_ io.Writer, _ types.TraceContext) types.CacheWrap
- func (cms Store) GetKVStore(key types.StoreKey) types.KVStore
- func (cms Store) GetStore(key types.StoreKey) types.Store
- func (cms Store) GetStoreType() types.StoreType
- func (cms Store) SetTracer(w io.Writer) types.MultiStore
- func (cms Store) SetTracingContext(tc types.TraceContext) types.MultiStore
- func (cms Store) TracingEnabled() bool
- func (cms Store) Write()
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 holds many cache-wrapped stores. Implements MultiStore. NOTE: a Store (and MultiStores in general) should never expose the keys for the substores.
func NewFromKVStore ¶
func NewStore ¶
func (Store) CacheMultiStore ¶
func (cms Store) CacheMultiStore() types.CacheMultiStore
Implements MultiStore.
func (Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements the CacheWrapper interface.
func (Store) GetKVStore ¶
GetKVStore returns an underlying KVStore by key.
func (Store) GetStore ¶
GetStore returns an underlying Store by key.
func (Store) GetStoreType ¶
GetStoreType returns the type of the store.
func (Store) SetTracer ¶
func (cms Store) SetTracer(w io.Writer) types.MultiStore
SetTracer sets the tracer for the MultiStore that the underlying stores will utilize to trace operations. A MultiStore is returned.
func (Store) SetTracingContext ¶
func (cms Store) SetTracingContext(tc types.TraceContext) types.MultiStore
SetTracingContext updates the tracing context for the MultiStore by merging the given context with the existing context by key. Any existing keys will be overwritten. It is implied that the caller should update the context when necessary between tracing operations. It returns a modified MultiStore.
func (Store) TracingEnabled ¶
TracingEnabled returns if tracing is enabled for the MultiStore.