{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package discovery\n\n## Functions\n\n```go\nfunc RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer)\n```\n\n## Types\n\n```go\ntype AuthInfo struct {\n\t// This is the identity of the client that is used to verify the signature\n\t// on the SignedRequest's payload.\n\t// It is a msp.SerializedIdentity in bytes form\n\tClientIdentity []byte `protobuf:\"bytes,1,opt,name=client_identity,json=clientIdentity,proto3\" json:\"client_identity,omitempty\"`\n\t// This is the hash of the client's TLS cert.\n\t// When the network is running with TLS, clients that don't include a certificate\n\t// will be denied access to the service.\n\t// Since the Request is encapsulated with a SignedRequest (which is signed),\n\t// this binds the TLS session to the enrollement identity of the client and\n\t// therefore both authenticates the client to the server,\n\t// and also prevents the server from relaying the request message to another server.\n\tClientTlsCertHash    []byte   `protobuf:\"bytes,2,opt,name=client_tls_cert_hash,json=clientTlsCertHash,proto3\" json:\"client_tls_cert_hash,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nAuthInfo aggregates authentication information that the server uses to authenticate the client\n\n```go\nfunc (*AuthInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *AuthInfo) GetClientIdentity() []byte\n```\n\n```go\nfunc (m *AuthInfo) GetClientTlsCertHash() []byte\n```\n\n```go\nfunc (*AuthInfo) ProtoMessage()\n```\n\n```go\nfunc (m *AuthInfo) Reset()\n```\n\n```go\nfunc (m *AuthInfo) String() string\n```\n\n```go\nfunc (m *AuthInfo) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *AuthInfo) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *AuthInfo) XXX_Size() int\n```\n\n```go\nfunc (m *AuthInfo) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ChaincodeCall struct {\n\tName                 string   `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tCollectionNames      []string `protobuf:\"bytes,2,rep,name=collection_names,json=collectionNames,proto3\" json:\"collection_names,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nChaincodeCall defines a call to a chaincode. It may have collections that are related to the chaincode\n\n```go\nfunc (*ChaincodeCall) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ChaincodeCall) GetCollectionNames() []string\n```\n\n```go\nfunc (m *ChaincodeCall) GetName() string\n```\n\n```go\nfunc (*ChaincodeCall) ProtoMessage()\n```\n\n```go\nfunc (m *ChaincodeCall) Reset()\n```\n\n```go\nfunc (m *ChaincodeCall) String() string\n```\n\n```go\nfunc (m *ChaincodeCall) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ChaincodeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ChaincodeCall) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ChaincodeCall) XXX_Size() int\n```\n\n```go\nfunc (m *ChaincodeCall) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ChaincodeInterest struct {\n\tChaincodes           []*ChaincodeCall `protobuf:\"bytes,1,rep,name=chaincodes,proto3\" json:\"chaincodes,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}         `json:\"-\"`\n\tXXX_unrecognized     []byte           `json:\"-\"`\n\tXXX_sizecache        int32            `json:\"-\"`\n}\n```\nChaincodeInterest defines an interest about an endorsement for a specific single chaincode invocation. Multiple chaincodes indicate chaincode to chaincode invocations.\n\n```go\nfunc (*ChaincodeInterest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ChaincodeInterest) GetChaincodes() []*ChaincodeCall\n```\n\n```go\nfunc (*ChaincodeInterest) ProtoMessage()\n```\n\n```go\nfunc (m *ChaincodeInterest) Reset()\n```\n\n```go\nfunc (m *ChaincodeInterest) String() string\n```\n\n```go\nfunc (m *ChaincodeInterest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ChaincodeInterest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ChaincodeInterest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ChaincodeInterest) XXX_Size() int\n```\n\n```go\nfunc (m *ChaincodeInterest) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ChaincodeQuery struct {\n\tInterests            []*ChaincodeInterest `protobuf:\"bytes,1,rep,name=interests,proto3\" json:\"interests,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}             `json:\"-\"`\n\tXXX_unrecognized     []byte               `json:\"-\"`\n\tXXX_sizecache        int32                `json:\"-\"`\n}\n```\nChaincodeQuery requests ChaincodeQueryResults for a given list of chaincode invocations. Each invocation is a separate one, and the endorsement policy is evaluated independantly for each given interest.\n\n```go\nfunc (*ChaincodeQuery) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ChaincodeQuery) GetInterests() []*ChaincodeInterest\n```\n\n```go\nfunc (*ChaincodeQuery) ProtoMessage()\n```\n\n```go\nfunc (m *ChaincodeQuery) Reset()\n```\n\n```go\nfunc (m *ChaincodeQuery) String() string\n```\n\n```go\nfunc (m *ChaincodeQuery) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ChaincodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ChaincodeQuery) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ChaincodeQuery) XXX_Size() int\n```\n\n```go\nfunc (m *ChaincodeQuery) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ChaincodeQueryResult struct {\n\tContent              []*EndorsementDescriptor `protobuf:\"bytes,1,rep,name=content,proto3\" json:\"content,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}                 `json:\"-\"`\n\tXXX_unrecognized     []byte                   `json:\"-\"`\n\tXXX_sizecache        int32                    `json:\"-\"`\n}\n```\nChaincodeQueryResult contains EndorsementDescriptors for chaincodes\n\n```go\nfunc (*ChaincodeQueryResult) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ChaincodeQueryResult) GetContent() []*EndorsementDescriptor\n```\n\n```go\nfunc (*ChaincodeQueryResult) ProtoMessage()\n```\n\n```go\nfunc (m *ChaincodeQueryResult) Reset()\n```\n\n```go\nfunc (m *ChaincodeQueryResult) String() string\n```\n\n```go\nfunc (m *ChaincodeQueryResult) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ChaincodeQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ChaincodeQueryResult) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ChaincodeQueryResult) XXX_Size() int\n```\n\n```go\nfunc (m *ChaincodeQueryResult) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ConfigQuery struct {\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nConfigQuery requests a ConfigResult\n\n```go\nfunc (*ConfigQuery) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*ConfigQuery) ProtoMessage()\n```\n\n```go\nfunc (m *ConfigQuery) Reset()\n```\n\n```go\nfunc (m *ConfigQuery) String() string\n```\n\n```go\nfunc (m *ConfigQuery) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ConfigQuery) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ConfigQuery) XXX_Size() int\n```\n\n```go\nfunc (m *ConfigQuery) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ConfigResult struct {\n\t// msps is a map from MSP_ID to FabricMSPConfig\n\tMsps map[string]*msp.FabricMSPConfig `protobuf:\"bytes,1,rep,name=msps,proto3\" json:\"msps,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// orderers is a map from MSP_ID to endpoint lists of orderers\n\tOrderers             map[string]*Endpoints `protobuf:\"bytes,2,rep,name=orderers,proto3\" json:\"orderers,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tXXX_NoUnkeyedLiteral struct{}              `json:\"-\"`\n\tXXX_unrecognized     []byte                `json:\"-\"`\n\tXXX_sizecache        int32                 `json:\"-\"`\n}\n```\n\n```go\nfunc (*ConfigResult) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ConfigResult) GetMsps() map[string]*msp.FabricMSPConfig\n```\n\n```go\nfunc (m *ConfigResult) GetOrderers() map[string]*Endpoints\n```\n\n```go\nfunc (*ConfigResult) ProtoMessage()\n```\n\n```go\nfunc (m *ConfigResult) Reset()\n```\n\n```go\nfunc (m *ConfigResult) String() string\n```\n\n```go\nfunc (m *ConfigResult) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ConfigResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *ConfigResult) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ConfigResult) XXX_Size() int\n```\n\n```go\nfunc (m *ConfigResult) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype DiscoveryClient interface {\n\t// Discover receives a signed request, and returns a response.\n\tDiscover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error)\n}\n```\nDiscoveryClient is the client API for Discovery service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://godoc.org/google.golang.org/grpc#ClientConn.NewStream](https://godoc.org/google.golang.org/grpc#ClientConn.NewStream).\n\n```go\nfunc NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient\n```\n\n```go\ntype DiscoveryServer interface {\n\t// Discover receives a signed request, and returns a response.\n\tDiscover(context.Context, *SignedRequest) (*Response, error)\n}\n```\nDiscoveryServer is the server API for Discovery service.\n\n```go\ntype EndorsementDescriptor struct {\n\tChaincode string `protobuf:\"bytes,1,opt,name=chaincode,proto3\" json:\"chaincode,omitempty\"`\n\t// Specifies the endorsers, separated to groups.\n\tEndorsersByGroups map[string]*Peers `protobuf:\"bytes,2,rep,name=endorsers_by_groups,json=endorsersByGroups,proto3\" json:\"endorsers_by_groups,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// Specifies options of fulfulling the endorsement policy.\n\t// Each option lists the group names, and the amount of signatures needed\n\t// from each group.\n\tLayouts              []*Layout `protobuf:\"bytes,3,rep,name=layouts,proto3\" json:\"layouts,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}  `json:\"-\"`\n\tXXX_unrecognized     []byte    `json:\"-\"`\n\tXXX_sizecache        int32     `json:\"-\"`\n}\n```\nEndorsementDescriptor contains information about which peers can be used to request endorsement from, such that the endorsement policy would be fulfilled. Here is how to compute a set of peers to ask an endorsement from, given an EndorsementDescriptor: Let e: G --\u003e P be the endorsers\\_by\\_groups field that maps a group to a set of peers. Note that applying e on a group g yields a set of peers.\n\n 1. Select a layout l: G --\u003e N out of the layouts given. l is the quantities\\_by\\_group field of a Layout, and it maps a group to an integer.\n 2. R = {}  (an empty set of peers)\n 3. For each group g in the layout l, compute n = l(g) 3.1) Denote P\\_g as a set of n random peers {p0, p1, ... p\\_n} selected from e(g) 3.2) R = R U P\\_g  (add P\\_g to R)\n 4. The set of peers R is the peers the client needs to request endorsements from\n\n```go\nfunc (*EndorsementDescriptor) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *EndorsementDescriptor) GetChaincode() string\n```\n\n```go\nfunc (m *EndorsementDescriptor) GetEndorsersByGroups() map[string]*Peers\n```\n\n```go\nfunc (m *EndorsementDescriptor) GetLayouts() []*Layout\n```\n\n```go\nfunc (*EndorsementDescriptor) ProtoMessage()\n```\n\n```go\nfunc (m *EndorsementDescriptor) Reset()\n```\n\n```go\nfunc (m *EndorsementDescriptor) String() string\n```\n\n```go\nfunc (m *EndorsementDescriptor) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *EndorsementDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *EndorsementDescriptor) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *EndorsementDescriptor) XXX_Size() int\n```\n\n```go\nfunc (m *EndorsementDescriptor) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Endpoint struct {\n\tHost                 string   `protobuf:\"bytes,1,opt,name=host,proto3\" json:\"host,omitempty\"`\n\tPort                 uint32   `protobuf:\"varint,2,opt,name=port,proto3\" json:\"port,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nEndpoint is a combination of a host and a port\n\n```go\nfunc (*Endpoint) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Endpoint) GetHost() string\n```\n\n```go\nfunc (m *Endpoint) GetPort() uint32\n```\n\n```go\nfunc (*Endpoint) ProtoMessage()\n```\n\n```go\nfunc (m *Endpoint) Reset()\n```\n\n```go\nfunc (m *Endpoint) String() string\n```\n\n```go\nfunc (m *Endpoint) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Endpoint) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Endpoint) XXX_Size() int\n```\n\n```go\nfunc (m *Endpoint) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Endpoints struct {\n\tEndpoint             []*Endpoint `protobuf:\"bytes,1,rep,name=endpoint,proto3\" json:\"endpoint,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}    `json:\"-\"`\n\tXXX_unrecognized     []byte      `json:\"-\"`\n\tXXX_sizecache        int32       `json:\"-\"`\n}\n```\nEndpoints is a list of Endpoint(s)\n\n```go\nfunc (*Endpoints) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Endpoints) GetEndpoint() []*Endpoint\n```\n\n```go\nfunc (*Endpoints) ProtoMessage()\n```\n\n```go\nfunc (m *Endpoints) Reset()\n```\n\n```go\nfunc (m *Endpoints) String() string\n```\n\n```go\nfunc (m *Endpoints) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Endpoints) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Endpoints) XXX_Size() int\n```\n\n```go\nfunc (m *Endpoints) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Error struct {\n\tContent              string   `protobuf:\"bytes,1,opt,name=content,proto3\" json:\"content,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nError denotes that something went wrong and contains the error message\n\n```go\nfunc (*Error) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Error) GetContent() string\n```\n\n```go\nfunc (*Error) ProtoMessage()\n```\n\n```go\nfunc (m *Error) Reset()\n```\n\n```go\nfunc (m *Error) String() string\n```\n\n```go\nfunc (m *Error) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Error) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Error) XXX_Size() int\n```\n\n```go\nfunc (m *Error) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Layout struct {\n\t// Specifies how many non repeated signatures of each group\n\t// are needed for endorsement\n\tQuantitiesByGroup    map[string]uint32 `protobuf:\"bytes,1,rep,name=quantities_by_group,json=quantitiesByGroup,proto3\" json:\"quantities_by_group,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"varint,2,opt,name=value,proto3\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nLayout contains a mapping from a group name to number of peers that are needed for fulfilling an endorsement policy\n\n```go\nfunc (*Layout) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Layout) GetQuantitiesByGroup() map[string]uint32\n```\n\n```go\nfunc (*Layout) ProtoMessage()\n```\n\n```go\nfunc (m *Layout) Reset()\n```\n\n```go\nfunc (m *Layout) String() string\n```\n\n```go\nfunc (m *Layout) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Layout) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Layout) XXX_Size() int\n```\n\n```go\nfunc (m *Layout) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype LocalPeerQuery struct {\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nLocalPeerQuery queries for peers in a non channel context\n\n```go\nfunc (*LocalPeerQuery) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (*LocalPeerQuery) ProtoMessage()\n```\n\n```go\nfunc (m *LocalPeerQuery) Reset()\n```\n\n```go\nfunc (m *LocalPeerQuery) String() string\n```\n\n```go\nfunc (m *LocalPeerQuery) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *LocalPeerQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *LocalPeerQuery) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *LocalPeerQuery) XXX_Size() int\n```\n\n```go\nfunc (m *LocalPeerQuery) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Peer struct {\n\t// This is an Envelope of a GossipMessage with a gossip.StateInfo message\n\tStateInfo *gossip.Envelope `protobuf:\"bytes,1,opt,name=state_info,json=stateInfo,proto3\" json:\"state_info,omitempty\"`\n\t// This is an Envelope of a GossipMessage with a gossip.AliveMessage message\n\tMembershipInfo *gossip.Envelope `protobuf:\"bytes,2,opt,name=membership_info,json=membershipInfo,proto3\" json:\"membership_info,omitempty\"`\n\t// This is the msp.SerializedIdentity of the peer, represented in bytes.\n\tIdentity             []byte   `protobuf:\"bytes,3,opt,name=identity,proto3\" json:\"identity,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nPeer contains information about the peer such as its channel specific state, and membership information.\n\n```go\nfunc (*Peer) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Peer) GetIdentity() []byte\n```\n\n```go\nfunc (m *Peer) GetMembershipInfo() *gossip.Envelope\n```\n\n```go\nfunc (m *Peer) GetStateInfo() *gossip.Envelope\n```\n\n```go\nfunc (*Peer) ProtoMessage()\n```\n\n```go\nfunc (m *Peer) Reset()\n```\n\n```go\nfunc (m *Peer) String() string\n```\n\n```go\nfunc (m *Peer) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Peer) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Peer) XXX_Size() int\n```\n\n```go\nfunc (m *Peer) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PeerMembershipQuery struct {\n\tFilter               *ChaincodeInterest `protobuf:\"bytes,1,opt,name=filter,proto3\" json:\"filter,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}           `json:\"-\"`\n\tXXX_unrecognized     []byte             `json:\"-\"`\n\tXXX_sizecache        int32              `json:\"-\"`\n}\n```\nPeerMembershipQuery requests PeerMembershipResult. The filter field may be optionally populated in order for the peer membership to be filtered according to chaincodes that are installed on peers and collection access control policies.\n\n```go\nfunc (*PeerMembershipQuery) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PeerMembershipQuery) GetFilter() *ChaincodeInterest\n```\n\n```go\nfunc (*PeerMembershipQuery) ProtoMessage()\n```\n\n```go\nfunc (m *PeerMembershipQuery) Reset()\n```\n\n```go\nfunc (m *PeerMembershipQuery) String() string\n```\n\n```go\nfunc (m *PeerMembershipQuery) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PeerMembershipQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PeerMembershipQuery) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PeerMembershipQuery) XXX_Size() int\n```\n\n```go\nfunc (m *PeerMembershipQuery) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype PeerMembershipResult struct {\n\tPeersByOrg           map[string]*Peers `protobuf:\"bytes,1,rep,name=peers_by_org,json=peersByOrg,proto3\" json:\"peers_by_org,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\tXXX_NoUnkeyedLiteral struct{}          `json:\"-\"`\n\tXXX_unrecognized     []byte            `json:\"-\"`\n\tXXX_sizecache        int32             `json:\"-\"`\n}\n```\nPeerMembershipResult contains peers mapped by their organizations (MSP\\_ID)\n\n```go\nfunc (*PeerMembershipResult) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *PeerMembershipResult) GetPeersByOrg() map[string]*Peers\n```\n\n```go\nfunc (*PeerMembershipResult) ProtoMessage()\n```\n\n```go\nfunc (m *PeerMembershipResult) Reset()\n```\n\n```go\nfunc (m *PeerMembershipResult) String() string\n```\n\n```go\nfunc (m *PeerMembershipResult) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *PeerMembershipResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *PeerMembershipResult) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *PeerMembershipResult) XXX_Size() int\n```\n\n```go\nfunc (m *PeerMembershipResult) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Peers struct {\n\tPeers                []*Peer  `protobuf:\"bytes,1,rep,name=peers,proto3\" json:\"peers,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nPeers contains a list of Peer(s)\n\n```go\nfunc (*Peers) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Peers) GetPeers() []*Peer\n```\n\n```go\nfunc (*Peers) ProtoMessage()\n```\n\n```go\nfunc (m *Peers) Reset()\n```\n\n```go\nfunc (m *Peers) String() string\n```\n\n```go\nfunc (m *Peers) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Peers) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Peers) XXX_Size() int\n```\n\n```go\nfunc (m *Peers) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Query struct {\n\tChannel string `protobuf:\"bytes,1,opt,name=channel,proto3\" json:\"channel,omitempty\"`\n\t// Types that are valid to be assigned to Query:\n\t//\t*Query_ConfigQuery\n\t//\t*Query_PeerQuery\n\t//\t*Query_CcQuery\n\t//\t*Query_LocalPeers\n\tQuery                isQuery_Query `protobuf_oneof:\"query\"`\n\tXXX_NoUnkeyedLiteral struct{}      `json:\"-\"`\n\tXXX_unrecognized     []byte        `json:\"-\"`\n\tXXX_sizecache        int32         `json:\"-\"`\n}\n```\nQuery asks for information in the context of a specific channel\n\n```go\nfunc (*Query) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Query) GetCcQuery() *ChaincodeQuery\n```\n\n```go\nfunc (m *Query) GetChannel() string\n```\n\n```go\nfunc (m *Query) GetConfigQuery() *ConfigQuery\n```\n\n```go\nfunc (m *Query) GetLocalPeers() *LocalPeerQuery\n```\n\n```go\nfunc (m *Query) GetPeerQuery() *PeerMembershipQuery\n```\n\n```go\nfunc (m *Query) GetQuery() isQuery_Query\n```\n\n```go\nfunc (q *Query) GetType() QueryType\n```\nGetType returns the type of the request\n\n```go\nfunc (*Query) ProtoMessage()\n```\n\n```go\nfunc (m *Query) Reset()\n```\n\n```go\nfunc (m *Query) String() string\n```\n\n```go\nfunc (m *Query) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Query) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*Query) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *Query) XXX_Size() int\n```\n\n```go\nfunc (m *Query) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype QueryResult struct {\n\t// Types that are valid to be assigned to Result:\n\t//\t*QueryResult_Error\n\t//\t*QueryResult_ConfigResult\n\t//\t*QueryResult_CcQueryRes\n\t//\t*QueryResult_Members\n\tResult               isQueryResult_Result `protobuf_oneof:\"result\"`\n\tXXX_NoUnkeyedLiteral struct{}             `json:\"-\"`\n\tXXX_unrecognized     []byte               `json:\"-\"`\n\tXXX_sizecache        int32                `json:\"-\"`\n}\n```\nQueryResult contains a result for a given Query. The corresponding Query can be inferred by the index of the QueryResult from its enclosing Response message. QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.\n\n```go\nfunc (*QueryResult) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *QueryResult) GetCcQueryRes() *ChaincodeQueryResult\n```\n\n```go\nfunc (m *QueryResult) GetConfigResult() *ConfigResult\n```\n\n```go\nfunc (m *QueryResult) GetError() *Error\n```\n\n```go\nfunc (m *QueryResult) GetMembers() *PeerMembershipResult\n```\n\n```go\nfunc (m *QueryResult) GetResult() isQueryResult_Result\n```\n\n```go\nfunc (*QueryResult) ProtoMessage()\n```\n\n```go\nfunc (m *QueryResult) Reset()\n```\n\n```go\nfunc (m *QueryResult) String() string\n```\n\n```go\nfunc (m *QueryResult) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *QueryResult) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*QueryResult) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *QueryResult) XXX_Size() int\n```\n\n```go\nfunc (m *QueryResult) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype QueryResult_CcQueryRes struct {\n\tCcQueryRes *ChaincodeQueryResult `protobuf:\"bytes,3,opt,name=cc_query_res,json=ccQueryRes,proto3,oneof\"`\n}\n```\n\n```go\ntype QueryResult_ConfigResult struct {\n\tConfigResult *ConfigResult `protobuf:\"bytes,2,opt,name=config_result,json=configResult,proto3,oneof\"`\n}\n```\n\n```go\ntype QueryResult_Error struct {\n\tError *Error `protobuf:\"bytes,1,opt,name=error,proto3,oneof\"`\n}\n```\n\n```go\ntype QueryResult_Members struct {\n\tMembers *PeerMembershipResult `protobuf:\"bytes,4,opt,name=members,proto3,oneof\"`\n}\n```\n\n```go\ntype QueryType uint8\n```\nQueryType defines the types of service discovery requests\n\n```go\nconst (\n\tInvalidQueryType QueryType = iota\n\tConfigQueryType\n\tPeerMembershipQueryType\n\tChaincodeQueryType\n\tLocalMembershipQueryType\n)\n```\n\n```go\ntype Query_CcQuery struct {\n\tCcQuery *ChaincodeQuery `protobuf:\"bytes,4,opt,name=cc_query,json=ccQuery,proto3,oneof\"`\n}\n```\n\n```go\ntype Query_ConfigQuery struct {\n\tConfigQuery *ConfigQuery `protobuf:\"bytes,2,opt,name=config_query,json=configQuery,proto3,oneof\"`\n}\n```\n\n```go\ntype Query_LocalPeers struct {\n\tLocalPeers *LocalPeerQuery `protobuf:\"bytes,5,opt,name=local_peers,json=localPeers,proto3,oneof\"`\n}\n```\n\n```go\ntype Query_PeerQuery struct {\n\tPeerQuery *PeerMembershipQuery `protobuf:\"bytes,3,opt,name=peer_query,json=peerQuery,proto3,oneof\"`\n}\n```\n\n```go\ntype Request struct {\n\t// authentication contains information that the service uses to check\n\t// the client's eligibility for the queries.\n\tAuthentication *AuthInfo `protobuf:\"bytes,1,opt,name=authentication,proto3\" json:\"authentication,omitempty\"`\n\t// queries\n\tQueries              []*Query `protobuf:\"bytes,2,rep,name=queries,proto3\" json:\"queries,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nRequest contains authentication info about the client that sent the request and the queries it wishes to query the service\n\n```go\nfunc (*Request) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Request) GetAuthentication() *AuthInfo\n```\n\n```go\nfunc (m *Request) GetQueries() []*Query\n```\n\n```go\nfunc (*Request) ProtoMessage()\n```\n\n```go\nfunc (m *Request) Reset()\n```\n\n```go\nfunc (m *Request) String() string\n```\n\n```go\nfunc (m *Request) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Request) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Request) XXX_Size() int\n```\n\n```go\nfunc (m *Request) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype Response struct {\n\t// The results are returned in the same order of the queries\n\tResults              []*QueryResult `protobuf:\"bytes,1,rep,name=results,proto3\" json:\"results,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\n\n```go\nfunc (m *Response) ConfigAt(i int) (*ConfigResult, *Error)\n```\nConfigAt returns the ConfigResult at a given index in the Response, or an Error if present.\n\n```go\nfunc (*Response) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Response) EndorsersAt(i int) (*ChaincodeQueryResult, *Error)\n```\nEndorsersAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.\n\n```go\nfunc (m *Response) GetResults() []*QueryResult\n```\n\n```go\nfunc (m *Response) MembershipAt(i int) (*PeerMembershipResult, *Error)\n```\nMembershipAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.\n\n```go\nfunc (*Response) ProtoMessage()\n```\n\n```go\nfunc (m *Response) Reset()\n```\n\n```go\nfunc (m *Response) String() string\n```\n\n```go\nfunc (m *Response) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *Response) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *Response) XXX_Size() int\n```\n\n```go\nfunc (m *Response) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SignedRequest struct {\n\tPayload              []byte   `protobuf:\"bytes,1,opt,name=payload,proto3\" json:\"payload,omitempty\"`\n\tSignature            []byte   `protobuf:\"bytes,2,opt,name=signature,proto3\" json:\"signature,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nSignedRequest contains a serialized Request in the payload field and a signature. The identity that is used to verify the signature can be extracted from the authentication field of type AuthInfo in the Request itself after deserializing it.\n\n```go\nfunc (*SignedRequest) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SignedRequest) GetPayload() []byte\n```\n\n```go\nfunc (m *SignedRequest) GetSignature() []byte\n```\n\n```go\nfunc (*SignedRequest) ProtoMessage()\n```\n\n```go\nfunc (m *SignedRequest) Reset()\n```\n\n```go\nfunc (m *SignedRequest) String() string\n```\n\n```go\nfunc (sr *SignedRequest) ToRequest() (*Request, error)\n```\nToRequest deserializes this SignedRequest's payload and returns the serialized Request in its object form. Returns an error in case the operation fails.\n\n```go\nfunc (m *SignedRequest) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SignedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SignedRequest) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SignedRequest) XXX_Size() int\n```\n\n```go\nfunc (m *SignedRequest) XXX_Unmarshal(b []byte) error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/protos/discovery","name":"discovery","synopsis":"","isRedistributable":true}
