Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + var Logger = flogging.MustGetLogger("discovery.lifecycle") + func DeployedChaincodes(q Query, filter ChaincodePredicate, loadCollections bool, chaincodes ...string) (chaincode.MetadataSet, error) + type ChaincodePredicate func(cc chaincode.Metadata) bool + var AcceptAll ChaincodePredicate = func(cc chaincode.Metadata) bool { ... } + type Enumerate func() ([]chaincode.InstalledChaincode, error) + func (listCCs Enumerate) Enumerate() ([]chaincode.InstalledChaincode, error) + type Enumerator interface + Enumerate func() ([]chaincode.InstalledChaincode, error) + type HandleMetadataUpdate func(channel string, chaincodes chaincode.MetadataSet) + func (mdUpdate HandleMetadataUpdate) LifeCycleChangeListener(channel string, chaincodes chaincode.MetadataSet) + type LifeCycleChangeListener interface + LifeCycleChangeListener func(channel string, chaincodes chaincode.MetadataSet) + type Lifecycle struct + func NewLifeCycle(installedChaincodes Enumerator) (*Lifecycle, error) + func (lc *Lifecycle) AddListener(listener LifeCycleChangeListener) + func (lc *Lifecycle) Metadata(channel string, cc string, collections bool) *chaincode.Metadata + func (lc *Lifecycle) NewChannelSubscription(channel string, queryCreator QueryCreator) (*Subscription, error) + type Query interface + Done func() + GetState func(namespace string, key string) ([]byte, error) + type QueryCreator interface + NewQuery func() (Query, error) + type QueryCreatorFunc func() (Query, error) + func (qc QueryCreatorFunc) NewQuery() (Query, error) + type Subscription struct + func (sub *Subscription) ChaincodeDeployDone(succeeded bool) + func (sub *Subscription) HandleChaincodeDeploy(chaincodeDefinition *cceventmgmt.ChaincodeDefinition, dbArtifactsTar []byte) error