...

Package confighistory

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

Overview ▾

type LedgerInfoRetriever

LedgerInfoRetriever retrieves the relevant info from ledger

type LedgerInfoRetriever interface {
    GetBlockchainInfo() (*common.BlockchainInfo, error)
}

type Mgr

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

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

func NewMgr

func NewMgr(ccInfoProvider ledger.DeployedChaincodeInfoProvider) Mgr

NewMgr constructs an instance that implements interface `Mgr`