Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendType ¶
type BackendType string
const ( BadgerDBBackend BackendType = "badgerdb" GoLevelDBBackend BackendType = "goleveldb" MapDBBackend BackendType = "mapdb" )
type Bucket ¶
type Bucket interface { Get(key []byte) ([]byte, error) Has(key []byte) bool Set(key []byte, value []byte) error Delete(key []byte) error }
Bucket
type BucketID ¶
type BucketID string
const ( // MerkleTrie maps RLP encoded data from sha3(data) MerkleTrie BucketID = "" // BytesByHash maps data except merkle trie nodes from sha3(data) BytesByHash BucketID = "S" // TransactionLocatorByHash maps transaction locator from transaction hash. TransactionLocatorByHash BucketID = "T" // BlockHeaderHashByHeight maps hash of encoded block header from height. BlockHeaderHashByHeight BucketID = "H" // BlockV1ByHash maps block V1 from block V1 hash. BlockV1ByHash BucketID = "B" // ReceiptV1ByHash maps receipt V1 from tx V3 hash. ReceiptV1ByHash BucketID = "R" // ChainProperty is general key value map for chain property. ChainProperty BucketID = "C" )
Bucket ID
type GoLevelDB ¶
type GoLevelDB struct {
// contains filtered or unexported fields
}
func NewGoLevelDBWithOpts ¶
Click to show internal directories.
Click to hide internal directories.