Versions in this module Expand all Collapse all v0 v0.2.0 Nov 8, 2019 Changes in this version + const GasDeleteDesc + const GasHasDesc + const GasIterNextCostFlatDesc + const GasReadCostFlatDesc + const GasReadPerByteDesc + const GasValuePerByteDesc + const GasWriteCostFlatDesc + const GasWritePerByteDesc + var PruneEverything = NewPruningOptions(0, 0) + var PruneNothing = NewPruningOptions(0, 1) + var PruneSyncable = NewPruningOptions(100, 10000) + func AssertValidKey(key []byte) + func AssertValidValue(value []byte) + func Cp(bz []byte) (ret []byte) + func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvA cmn.KVPair, kvB cmn.KVPair, count int64, equal bool) + func InclusiveEndBytes(inclusiveBytes []byte) (exclusiveBytes []byte) + func PrefixEndBytes(prefix []byte) []byte + type CacheKVStore interface + Write func() + type CacheMultiStore interface + Write func() + type CacheWrap interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + Write func() + type CacheWrapper interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + type CommitID struct + Hash []byte + Version int64 + func (cid CommitID) IsZero() bool + func (cid CommitID) String() string + type CommitKVStore interface + type CommitMultiStore interface + GetCommitKVStore func(key StoreKey) CommitKVStore + GetCommitStore func(key StoreKey) CommitStore + LoadLatestVersion func() error + LoadVersion func(ver int64) error + MountStoreWithDB func(key StoreKey, typ StoreType, db dbm.DB) + type CommitStore interface + type Committer interface + Commit func() CommitID + LastCommitID func() CommitID + SetPruning func(PruningOptions) + type ErrorGasOverflow struct + Descriptor string + type ErrorOutOfGas struct + Descriptor string + type Gas = uint64 + type GasConfig struct + DeleteCost Gas + HasCost Gas + IterNextCostFlat Gas + ReadCostFlat Gas + ReadCostPerByte Gas + WriteCostFlat Gas + WriteCostPerByte Gas + func KVGasConfig() GasConfig + func TransientGasConfig() GasConfig + type GasMeter interface + ConsumeGas func(amount Gas, descriptor string) + GasConsumed func() Gas + GasConsumedToLimit func() Gas + IsOutOfGas func() bool + IsPastLimit func() bool + Limit func() Gas + func NewGasMeter(limit Gas) GasMeter + func NewInfiniteGasMeter() GasMeter + type Iterator = dbm.Iterator + func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator + func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator + type KVPair cmn.KVPair + type KVStore interface + Delete func(key []byte) + Get func(key []byte) []byte + Has func(key []byte) bool + Iterator func(start, end []byte) Iterator + ReverseIterator func(start, end []byte) Iterator + Set func(key, value []byte) + type KVStoreKey struct + func NewKVStoreKey(name string) *KVStoreKey + func (key *KVStoreKey) Name() string + func (key *KVStoreKey) String() string + type MultiStore interface + CacheMultiStore func() CacheMultiStore + CacheMultiStoreWithVersion func(version int64) (CacheMultiStore, error) + GetKVStore func(StoreKey) KVStore + GetStore func(StoreKey) Store + SetTracer func(w io.Writer) MultiStore + SetTracingContext func(TraceContext) MultiStore + TracingEnabled func() bool + type PruningOptions struct + func NewPruningOptions(keepRecent, keepEvery int64) PruningOptions + func (po PruningOptions) KeepEvery() int64 + func (po PruningOptions) KeepRecent() int64 + type Queryable interface + Query func(abci.RequestQuery) abci.ResponseQuery + type Store interface + GetStoreType func() StoreType + type StoreKey interface + Name func() string + String func() string + type StoreType int + const StoreTypeDB + const StoreTypeIAVL + const StoreTypeMulti + const StoreTypeTransient + type TraceContext map[string]interface + type TransientStoreKey struct + func NewTransientStoreKey(name string) *TransientStoreKey + func (key *TransientStoreKey) Name() string + func (key *TransientStoreKey) String() string