ss

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL