Documentation ¶
Index ¶
- type DB
- func (d *DB) Commit(block *common.Block) error
- func (d *DB) CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error
- func (d *DB) GetLastSavepoint() (*version.Height, error)
- func (d *DB) Name() string
- func (d *DB) NewQueryExecutor(blockStore blkstorage.BlockStore) (ledger.HistoryQueryExecutor, error)
- func (d *DB) ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error)
- type DBProvider
- type QueryExecutor
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
}
DB maintains and provides access to history data for a particular channel
func (*DB) CommitLostBlock ¶
func (d *DB) CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error
CommitLostBlock implements method in interface kvledger.Recoverer
func (*DB) GetLastSavepoint ¶
GetLastSavepoint implements returns the height till which the history is present in the db
func (*DB) NewQueryExecutor ¶
func (d *DB) NewQueryExecutor(blockStore blkstorage.BlockStore) (ledger.HistoryQueryExecutor, error)
NewQueryExecutor implements method in HistoryDB interface
type DBProvider ¶
type DBProvider struct {
// contains filtered or unexported fields
}
DBProvider provides handle to HistoryDB for a given channel
func NewDBProvider ¶
func NewDBProvider(path string) (*DBProvider, error)
NewDBProvider instantiates DBProvider
func (*DBProvider) GetDBHandle ¶
func (p *DBProvider) GetDBHandle(name string) (*DB, error)
GetDBHandle gets the handle to a named database
type QueryExecutor ¶
type QueryExecutor struct {
// contains filtered or unexported fields
}
QueryExecutor is a query executor against the LevelDB history DB
func (*QueryExecutor) GetHistoryForKey ¶
func (q *QueryExecutor) GetHistoryForKey(namespace string, key string) (commonledger.ResultsIterator, error)
GetHistoryForKey implements method in interface `ledger.HistoryQueryExecutor`
Click to show internal directories.
Click to hide internal directories.