DiscoverySupport implements support that is used for service discovery that is related to chaincode
type DiscoverySupport struct {
// contains filtered or unexported fields
}
func NewDiscoverySupport(ci MetadataRetriever) *DiscoverySupport
NewDiscoverySupport creates a new DiscoverySupport
func (s *DiscoverySupport) PolicyByChaincode(channel string, cc string) policies.InquireablePolicy
type MetadataRetriever interface { Metadata(channel string, cc string, loadCollections bool) *chaincode.Metadata }