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
}
func (*DB) CommitLostBlock ¶
func (d *DB) CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error
func (*DB) NewQueryExecutor ¶
func (d *DB) NewQueryExecutor(blockStore blkstorage.BlockStore) (ledger.HistoryQueryExecutor, 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)
Click to show internal directories.
Click to hide internal directories.