stateleveldb

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeValue

func DecodeValue(encodedValue []byte) ([]byte, *version.Height)

func EncodeValue

func EncodeValue(value []byte, version *version.Height) []byte

Types

type TestVDBEnv

type TestVDBEnv struct {
	DBProvider statedb.VersionedDBProvider
	// contains filtered or unexported fields
}

func NewTestVDBEnv

func NewTestVDBEnv(t testing.TB) *TestVDBEnv

func (*TestVDBEnv) Cleanup

func (env *TestVDBEnv) Cleanup()

type VersionedDBProvider

type VersionedDBProvider struct {
	// contains filtered or unexported fields
}

func NewVersionedDBProvider

func NewVersionedDBProvider(dbPath string) (*VersionedDBProvider, error)

func (*VersionedDBProvider) Close

func (provider *VersionedDBProvider) Close()

func (*VersionedDBProvider) GetDBHandle

func (provider *VersionedDBProvider) GetDBHandle(dbName string) (statedb.VersionedDB, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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