keyleveldb

package
v0.0.0-...-cc0dd9b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authors

type Authors struct {
	Authors    []string `json:"authors"`
	Conference string   `json:"conference"`
}

type KeyDB

type KeyDB struct {
	Db *leveldbhelper.DBHandle
	// contains filtered or unexported fields
}

func (*KeyDB) Commit

func (keyDB *KeyDB) Commit(writeKeys []string, height *version.Height) error

Commit implements method in keyDB interface

func (*KeyDB) CommitLostBlock

func (keyDB *KeyDB) CommitLostBlock(writeKeys []string, height *version.Height) error

CommitLostBlock implements method in interface kvledger.Recoverer

func (*KeyDB) GetLastSavepoint

func (keyDB *KeyDB) GetLastSavepoint() (*version.Height, error)

GetBlockNumFromSavepoint implements method in HistoryDB interface

func (*KeyDB) ShouldRecover

func (keyDB *KeyDB) ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error)

ShouldRecover implements method in interface kvledger.Recoverer

type KeyDBProvider

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

VersionedDBProvider implements interface VersionedDBProvider

func NewKeyDBProvider

func NewKeyDBProvider() *KeyDBProvider

NewVersionedDBProvider instantiates VersionedDBProvider

func (*KeyDBProvider) Close

func (provider *KeyDBProvider) Close()

Close closes the underlying db

func (*KeyDBProvider) GetDBHandle

func (provider *KeyDBProvider) GetDBHandle(dbName string) (keydb.KeyDB, error)

type LevelKeyDBQueryExecutor

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

LevelHistoryDBQueryExecutor is a query executor against the LevelDB history DB

func (*LevelKeyDBQueryExecutor) GetKeysForKey

func (q *LevelKeyDBQueryExecutor) GetKeysForKey(namespace string, key string) ([]string, error)

GetHistoryForKey implements method in interface `ledger.HistoryQueryExecutor`

Jump to

Keyboard shortcuts

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