Documentation ¶
Index ¶
- type Authors
- type KeyDB
- func (keyDB *KeyDB) Commit(writeKeys []string, height *version.Height) error
- func (keyDB *KeyDB) CommitLostBlock(writeKeys []string, height *version.Height) error
- func (keyDB *KeyDB) GetLastSavepoint() (*version.Height, error)
- func (keyDB *KeyDB) ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error)
- type KeyDBProvider
- type LevelKeyDBQueryExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyDB ¶
type KeyDB struct { Db *leveldbhelper.DBHandle // contains filtered or unexported fields }
func (*KeyDB) CommitLostBlock ¶
CommitLostBlock implements method in interface kvledger.Recoverer
func (*KeyDB) GetLastSavepoint ¶
GetBlockNumFromSavepoint implements method in HistoryDB interface
type KeyDBProvider ¶
type KeyDBProvider struct {
// contains filtered or unexported fields
}
VersionedDBProvider implements interface VersionedDBProvider
func NewKeyDBProvider ¶
func NewKeyDBProvider() *KeyDBProvider
NewVersionedDBProvider instantiates VersionedDBProvider
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`
Click to show internal directories.
Click to hide internal directories.