package
1.14.2
Repository: https://github.com/iotexproject/iotex-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CreateKVStore creates db from config and db path.
CreateKVStoreWithCache creates db with cache from config and db path, cacheSize.
FlushTranslateOption sets the translate for flush.
GetCountingIndex return an existing counting index.
NewBoltDB instantiates an BoltDB with implements KVStore.
NewCountingIndexNX creates a new counting index if it does not exist, otherwise return existing index.
NewKVStoreFlusher returns kv store flusher.
NewKvStoreWithCache wraps kvstore with stateCaches.
NewMemKVStore instantiates an in-memory KV store.
NewMockKVStore creates a new mock instance.
NewMockKVStoreBasic creates a new mock instance.
NewMockKVStoreForRangeIndex creates a new mock instance.
NewMockKVStoreWithRange creates a new mock instance.
NewRangeIndex creates a new instance of rangeIndex.
SerializeFilterOption sets the filter for serialize write queue.
SerializeOption sets the serialize function for write queue.

# Variables

CountKey is the special key to store the size of index, it satisfies bytes.Compare(CountKey, MinUint64) = -1.
DefaultConfig returns the default config.
ErrBucketNotExist indicates certain bucket does not exist in db.
ErrDBNotStarted represents the error when a db has not started.
ErrEmptyDBPath is the error when db path is empty.
ErrInvalid indicates an invalid input.
ErrIO indicates the generic error of DB I/O operation.
ErrNotExist indicates certain item does not exist in Blockchain database.
ErrNotSupported indicates that api is not supported.
MaxKey is the special key such that bytes.Compare(MaxUint64, MaxKey) = -1.
NotExist is the empty byte slice to indicate a key does not exist (as a result of calling Purge()).
ZeroIndex is 8-byte of 0.

# Structs

BoltDB is KVStore implementation based bolt DB.
Config is the config for database.
MockKVStore is a mock of KVStore interface.
MockKVStoreBasic is a mock of KVStoreBasic interface.
MockKVStoreBasicMockRecorder is the mock recorder for MockKVStoreBasic.
MockKVStoreForRangeIndex is a mock of KVStoreForRangeIndex interface.
MockKVStoreForRangeIndexMockRecorder is the mock recorder for MockKVStoreForRangeIndex.
MockKVStoreMockRecorder is the mock recorder for MockKVStore.
MockKVStoreWithRange is a mock of KVStoreWithRange interface.
MockKVStoreWithRangeMockRecorder is the mock recorder for MockKVStoreWithRange.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author