Documentation
¶
Index ¶
Constants ¶
This section is empty.
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(homePath string, backendType BackendType) types.StateStore
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.