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

package confighistory

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

Index

Package Files

db_helper.go mgr.go

type LedgerInfoRetriever Uses

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

LedgerInfoRetriever retrieves the relevant info from ledger

type Mgr Uses

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

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

func NewMgr Uses

func NewMgr(ccInfoProvider ledger.DeployedChaincodeInfoProvider) Mgr

NewMgr constructs an instance that implements interface `Mgr`

Package confighistory imports 12 packages (graph) and is imported by 1 packages. Updated 2019-01-27. Refresh now. Tools for package owners.