// Support gives access to peer resources and avoids calls to static methodstypeSupportinterface {// GetApplicationConfig returns the configtxapplication.SharedConfig for the channel// and whether the Application config existsGetApplicationConfig(cid string) (channelconfig.Application, bool)// ChaincodeByName returns the definition (and whether they exist)// for a chaincode in a specific channelChaincodeByName(chainname, ccname string) (resourcesconfig.ChaincodeDefinition, bool)}
supportImpl
实现support接口
GetApplicationConfig返回指定channel的配置信息
ChaincodeByName返回指定chaincode定义
// SupportFactory is a factory of Support interfacestypeSupportFactoryinterface {// NewSupport returns a Support interfaceNewSupport() Support}