history

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func (*DB) Commit

func (d *DB) Commit(block *common.Block) error

func (*DB) CommitLostBlock

func (d *DB) CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error

func (*DB) GetLastSavepoint

func (d *DB) GetLastSavepoint() (*version.Height, error)

func (*DB) Name

func (d *DB) Name() string

func (*DB) NewQueryExecutor

func (d *DB) NewQueryExecutor(blockStore blkstorage.BlockStore) (ledger.HistoryQueryExecutor, error)

func (*DB) ShouldRecover

func (d *DB) ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error)

type DBProvider

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

func NewDBProvider

func NewDBProvider(path string) (*DBProvider, error)

func (*DBProvider) Close

func (p *DBProvider) Close()

func (*DBProvider) GetDBHandle

func (p *DBProvider) GetDBHandle(name string) (*DB, error)

type QueryExecutor

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

func (*QueryExecutor) GetHistoryForKey

func (q *QueryExecutor) GetHistoryForKey(namespace string, key string) (commonledger.ResultsIterator, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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