ss

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStateStore added in v0.0.23

func NewStateStore(homeDir string, ssConfig config.StateStoreConfig) (types.StateStore, error)

NewStateStore Create a new state store with the specified backend type

func RecoverStateStore added in v0.0.23

func RecoverStateStore(homePath string, logger logger.Logger, stateStore types.StateStore) error

func RegisterBackend added in v0.0.8

func RegisterBackend(backendType BackendType, initializer BackendInitializer)

Types

type BackendInitializer added in v0.0.8

type BackendInitializer func(dir string, config config.StateStoreConfig) (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