types

package
v0.0.0-...-69704c5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FlagTrieRocksdbBatchSize = "trie.rocksdb-batch-size"

Variables

View Source
var TrieRocksdbBatchSize uint = 10

Functions

func CreateKvDB

func CreateKvDB(name string, backend BackendType, dir string) (ethdb.KeyValueStore, error)

func NewMptLevelDB

func NewMptLevelDB(name string, dir string) (ethdb.KeyValueStore, error)

func NewMptMemDB

func NewMptMemDB(name string, dir string) (ethdb.KeyValueStore, error)

Types

type BackendType

type BackendType string

------------------------------------------

const (
	// GoLevelDBBackend represents goleveldb (github.com/syndtr/goleveldb - most
	// popular implementation)
	//   - pure go
	//   - stable
	GoLevelDBBackend BackendType = "goleveldb"

	// RocksDBBackend represents rocksdb (uses github.com/cosmos/gorocksdb)
	//   - EXPERIMENTAL
	//   - requires gcc
	//   - use rocksdb build tag (go build -tags rocksdb)
	RocksDBBackend BackendType = "rocksdb"

	// MemDBBackend represents in-memory key value store, which is mostly used
	// for testing.
	MemDBBackend BackendType = "memdb"
)

These are valid backend types.

Jump to

Keyboard shortcuts

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