fabric: github.com/hyperledger/fabric/core/ledger/confighistory Index | Files

package confighistory

import "github.com/hyperledger/fabric/core/ledger/confighistory"


Package Files

db_helper.go mgr.go

type LedgerInfoRetriever Uses

type LedgerInfoRetriever interface {
    GetBlockchainInfo() (*common.BlockchainInfo, error)
    NewQueryExecutor() (ledger.QueryExecutor, error)

LedgerInfoRetriever retrieves the relevant info from ledger

type Mgr Uses

type Mgr interface {
    GetRetriever(ledgerID string, ledgerInfoRetriever LedgerInfoRetriever) ledger.ConfigHistoryRetriever

Mgr should be registered as a state listener. The state listener builds the history and retriever helps in querying the history

func NewMgr Uses

func NewMgr(dbPath string, ccInfoProvider ledger.DeployedChaincodeInfoProvider) (Mgr, error)

NewMgr constructs an instance that implements interface `Mgr`

Package confighistory imports 12 packages (graph) and is imported by 2 packages. Updated 2020-01-03. Refresh now. Tools for package owners.