ss

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStateStore

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

NewStateStore Create a new state store with the specified backend type

func RecoverStateStore

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

RecoverStateStore will be called during initialization to recover the state from rlog

func RegisterBackend

func RegisterBackend(backendType BackendType, initializer BackendInitializer)

Types

type BackendInitializer

type BackendInitializer func(dir string, config config.StateStoreConfig) (types.StateStore, error)

type BackendType

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