Documentation ¶
Index ¶
- Constants
- func NewStateStoreDB(dir string, backendType BackendType) (types.StateStore, error)
- func RegisterBackend(backendType BackendType, initializer BackendInitializer)
- func SetupStateStore(logger logger.Logger, homePath string, cms storetypes.CommitMultiStore, ...) (storetypes.QueryMultiStore, error)
- type BackendInitializer
- type BackendType
Constants ¶
View Source
const ( FlagSSEnable = "state-store.enable" FlagSSBackend = "state-store.backend" FlagSSAsyncWriterBuffer = "state-store.async-write-buffer" )
Variables ¶
This section is empty.
Functions ¶
func NewStateStoreDB ¶ added in v0.0.8
func NewStateStoreDB(dir string, backendType BackendType) (types.StateStore, error)
func RegisterBackend ¶ added in v0.0.8
func RegisterBackend(backendType BackendType, initializer BackendInitializer)
func SetupStateStore ¶ added in v0.0.8
func SetupStateStore( logger logger.Logger, homePath string, cms storetypes.CommitMultiStore, stateCommit *rootmulti.Store, appOpts servertypes.AppOptions, keys map[string]*storetypes.KVStoreKey, tkeys map[string]*storetypes.TransientStoreKey, memKeys map[string]*storetypes.MemoryStoreKey, ) (storetypes.QueryMultiStore, error)
Types ¶
type BackendInitializer ¶ added in v0.0.8
type BackendInitializer func(dir string) (types.StateStore, error)
type BackendType ¶ added in v0.0.8
type BackendType string
const ( // RocksDBBackend represents rocksdb // - use rocksdb build tag RocksDBBackend BackendType = "rocksdb" // PebbleDBBackend represents pebbledb PebbleDBBackend BackendType = "pebbledb" // SQLiteBackend represents sqlite SQLiteBackend BackendType = "sqlite" )
Click to show internal directories.
Click to hide internal directories.