ss

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 9 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(logger logger.Logger, 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(logger logger.Logger, changelogPath string, stateStore types.StateStore) error

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

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