Documentation ¶
Index ¶
- Constants
- func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvAs, kvBs []kv.Pair)
- func InclusiveEndBytes(inclusiveBytes []byte) (exclusiveBytes []byte)
- func NewKVStoreKeys(names ...string) map[string]*KVStoreKey
- func NewMemoryStoreKeys(names ...string) map[string]*MemoryStoreKey
- func NewTransientStoreKeys(names ...string) map[string]*TransientStoreKey
- func PrefixEndBytes(prefix []byte) []byte
- type CacheKVStore
- type CacheMultiStore
- type CacheWrap
- type CacheWrapper
- type CapabilityKey
- type CommitID
- type CommitKVStore
- type CommitMultiStore
- type CommitStore
- type Committer
- type ErrorGasOverflow
- type ErrorOutOfGas
- type Gas
- type GasConfig
- type GasMeter
- type Iterator
- func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator
- func KVStorePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator
- func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator
- func KVStoreReversePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator
- type KVPair
- type KVStore
- type KVStoreKey
- type MemoryStoreKey
- type MultiStore
- type MultiStorePersistentCache
- type PruningOptions
- type Queryable
- type Store
- type StoreDecoderRegistry
- type StoreKey
- type StoreType
- type TraceContext
- type TransientStoreKey
Constants ¶
const ( StoreTypeMulti = types.StoreTypeMulti StoreTypeDB = types.StoreTypeDB StoreTypeIAVL = types.StoreTypeIAVL StoreTypeTransient = types.StoreTypeTransient StoreTypeMemory = types.StoreTypeMemory )
Variables ¶
This section is empty.
Functions ¶
func DiffKVStores ¶
DiffKVStores compares two KVstores and returns all the key/value pairs that differ from one another. It also skips value comparison for a set of provided prefixes
func InclusiveEndBytes ¶
InclusiveEndBytes returns the []byte that would end a range query such that the input would be included
func NewKVStoreKeys ¶
func NewKVStoreKeys(names ...string) map[string]*KVStoreKey
NewKVStoreKeys returns a map of new pointers to KVStoreKey's. The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).
func NewMemoryStoreKeys ¶
func NewMemoryStoreKeys(names ...string) map[string]*MemoryStoreKey
NewMemoryStoreKeys constructs a new map matching store key names to their respective MemoryStoreKey references. The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).
func NewTransientStoreKeys ¶
func NewTransientStoreKeys(names ...string) map[string]*TransientStoreKey
NewTransientStoreKeys constructs a new map of TransientStoreKey's Must return pointers according to the ocap principle The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).
func PrefixEndBytes ¶
PrefixEndBytes returns the []byte that would end a range query for all []byte with a certain prefix Deals with last byte of prefix being FF without overflowing
Types ¶
type CacheKVStore ¶
type CacheKVStore = types.CacheKVStore
type CacheMultiStore ¶
type CacheMultiStore = types.CacheMultiStore
type CacheWrapper ¶
type CacheWrapper = types.CacheWrapper
type CapabilityKey ¶
type CapabilityKey = types.CapabilityKey
type CommitKVStore ¶
type CommitKVStore = types.CommitKVStore
type CommitMultiStore ¶
type CommitMultiStore = types.CommitMultiStore
type CommitStore ¶
type CommitStore = types.CommitStore
type ErrorGasOverflow ¶
type ErrorGasOverflow = types.ErrorGasOverflow
type ErrorOutOfGas ¶
type ErrorOutOfGas = types.ErrorOutOfGas
type Iterator ¶
func KVStorePrefixIterator ¶
Iterator over all the keys with a certain prefix in ascending order
func KVStorePrefixIteratorPaginated ¶
KVStorePrefixIteratorPaginated returns iterator over items in the selected page. Items iterated and skipped in ascending order.
func KVStoreReversePrefixIterator ¶
Iterator over all the keys with a certain prefix in descending order.
type KVStoreKey ¶
type KVStoreKey = types.KVStoreKey
func NewKVStoreKey ¶
func NewKVStoreKey(name string) *KVStoreKey
NewKVStoreKey returns a new pointer to a KVStoreKey.
type MemoryStoreKey ¶
type MemoryStoreKey = types.MemoryStoreKey
type MultiStore ¶
type MultiStore = types.MultiStore
type MultiStorePersistentCache ¶
type MultiStorePersistentCache = types.MultiStorePersistentCache
type PruningOptions ¶
type PruningOptions = types.PruningOptions
type StoreDecoderRegistry ¶
StoreDecoderRegistry defines each of the modules store decoders. Used for ImportExport simulation.
type TraceContext ¶
type TraceContext = types.TraceContext
TraceContext contains TraceKVStore context data. It will be written with every trace operation.
type TransientStoreKey ¶
type TransientStoreKey = types.TransientStoreKey
func NewTransientStoreKey ¶
func NewTransientStoreKey(name string) *TransientStoreKey
Constructs new TransientStoreKey Must return a pointer according to the ocap principle