Versions in this module Expand all Collapse all v1 v1.4.9 Jul 22, 2021 Changes in this version + func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer) + type AuthInfo struct + ClientIdentity []byte + ClientTlsCertHash []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AuthInfo) Descriptor() ([]byte, []int) + func (*AuthInfo) ProtoMessage() + func (dst *AuthInfo) XXX_Merge(src proto.Message) + func (m *AuthInfo) GetClientIdentity() []byte + func (m *AuthInfo) GetClientTlsCertHash() []byte + func (m *AuthInfo) Reset() + func (m *AuthInfo) String() string + func (m *AuthInfo) XXX_DiscardUnknown() + func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AuthInfo) XXX_Size() int + func (m *AuthInfo) XXX_Unmarshal(b []byte) error + type ChaincodeCall struct + CollectionNames []string + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChaincodeCall) Descriptor() ([]byte, []int) + func (*ChaincodeCall) ProtoMessage() + func (dst *ChaincodeCall) XXX_Merge(src proto.Message) + func (m *ChaincodeCall) GetCollectionNames() []string + func (m *ChaincodeCall) GetName() string + func (m *ChaincodeCall) Reset() + func (m *ChaincodeCall) String() string + func (m *ChaincodeCall) XXX_DiscardUnknown() + func (m *ChaincodeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeCall) XXX_Size() int + func (m *ChaincodeCall) XXX_Unmarshal(b []byte) error + type ChaincodeInterest struct + Chaincodes []*ChaincodeCall + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChaincodeInterest) Descriptor() ([]byte, []int) + func (*ChaincodeInterest) ProtoMessage() + func (dst *ChaincodeInterest) XXX_Merge(src proto.Message) + func (m *ChaincodeInterest) GetChaincodes() []*ChaincodeCall + func (m *ChaincodeInterest) Reset() + func (m *ChaincodeInterest) String() string + func (m *ChaincodeInterest) XXX_DiscardUnknown() + func (m *ChaincodeInterest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeInterest) XXX_Size() int + func (m *ChaincodeInterest) XXX_Unmarshal(b []byte) error + type ChaincodeQuery struct + Interests []*ChaincodeInterest + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChaincodeQuery) Descriptor() ([]byte, []int) + func (*ChaincodeQuery) ProtoMessage() + func (dst *ChaincodeQuery) XXX_Merge(src proto.Message) + func (m *ChaincodeQuery) GetInterests() []*ChaincodeInterest + func (m *ChaincodeQuery) Reset() + func (m *ChaincodeQuery) String() string + func (m *ChaincodeQuery) XXX_DiscardUnknown() + func (m *ChaincodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeQuery) XXX_Size() int + func (m *ChaincodeQuery) XXX_Unmarshal(b []byte) error + type ChaincodeQueryResult struct + Content []*EndorsementDescriptor + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ChaincodeQueryResult) Descriptor() ([]byte, []int) + func (*ChaincodeQueryResult) ProtoMessage() + func (dst *ChaincodeQueryResult) XXX_Merge(src proto.Message) + func (m *ChaincodeQueryResult) GetContent() []*EndorsementDescriptor + func (m *ChaincodeQueryResult) Reset() + func (m *ChaincodeQueryResult) String() string + func (m *ChaincodeQueryResult) XXX_DiscardUnknown() + func (m *ChaincodeQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ChaincodeQueryResult) XXX_Size() int + func (m *ChaincodeQueryResult) XXX_Unmarshal(b []byte) error + type ConfigQuery struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ConfigQuery) Descriptor() ([]byte, []int) + func (*ConfigQuery) ProtoMessage() + func (dst *ConfigQuery) XXX_Merge(src proto.Message) + func (m *ConfigQuery) Reset() + func (m *ConfigQuery) String() string + func (m *ConfigQuery) XXX_DiscardUnknown() + func (m *ConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConfigQuery) XXX_Size() int + func (m *ConfigQuery) XXX_Unmarshal(b []byte) error + type ConfigResult struct + Msps map[string]*msp.FabricMSPConfig + Orderers map[string]*Endpoints + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ConfigResult) Descriptor() ([]byte, []int) + func (*ConfigResult) ProtoMessage() + func (dst *ConfigResult) XXX_Merge(src proto.Message) + func (m *ConfigResult) GetMsps() map[string]*msp.FabricMSPConfig + func (m *ConfigResult) GetOrderers() map[string]*Endpoints + func (m *ConfigResult) Reset() + func (m *ConfigResult) String() string + func (m *ConfigResult) XXX_DiscardUnknown() + func (m *ConfigResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConfigResult) XXX_Size() int + func (m *ConfigResult) XXX_Unmarshal(b []byte) error + type DiscoveryClient interface + Discover func(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error) + func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient + type DiscoveryServer interface + Discover func(context.Context, *SignedRequest) (*Response, error) + type EndorsementDescriptor struct + Chaincode string + EndorsersByGroups map[string]*Peers + Layouts []*Layout + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*EndorsementDescriptor) Descriptor() ([]byte, []int) + func (*EndorsementDescriptor) ProtoMessage() + func (dst *EndorsementDescriptor) XXX_Merge(src proto.Message) + func (m *EndorsementDescriptor) GetChaincode() string + func (m *EndorsementDescriptor) GetEndorsersByGroups() map[string]*Peers + func (m *EndorsementDescriptor) GetLayouts() []*Layout + func (m *EndorsementDescriptor) Reset() + func (m *EndorsementDescriptor) String() string + func (m *EndorsementDescriptor) XXX_DiscardUnknown() + func (m *EndorsementDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EndorsementDescriptor) XXX_Size() int + func (m *EndorsementDescriptor) XXX_Unmarshal(b []byte) error + type Endpoint struct + Host string + Port uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Endpoint) Descriptor() ([]byte, []int) + func (*Endpoint) ProtoMessage() + func (dst *Endpoint) XXX_Merge(src proto.Message) + func (m *Endpoint) GetHost() string + func (m *Endpoint) GetPort() uint32 + func (m *Endpoint) Reset() + func (m *Endpoint) String() string + func (m *Endpoint) XXX_DiscardUnknown() + func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Endpoint) XXX_Size() int + func (m *Endpoint) XXX_Unmarshal(b []byte) error + type Endpoints struct + Endpoint []*Endpoint + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Endpoints) Descriptor() ([]byte, []int) + func (*Endpoints) ProtoMessage() + func (dst *Endpoints) XXX_Merge(src proto.Message) + func (m *Endpoints) GetEndpoint() []*Endpoint + func (m *Endpoints) Reset() + func (m *Endpoints) String() string + func (m *Endpoints) XXX_DiscardUnknown() + func (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Endpoints) XXX_Size() int + func (m *Endpoints) XXX_Unmarshal(b []byte) error + type Error struct + Content string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (dst *Error) XXX_Merge(src proto.Message) + func (m *Error) GetContent() string + func (m *Error) Reset() + func (m *Error) String() string + func (m *Error) XXX_DiscardUnknown() + func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Error) XXX_Size() int + func (m *Error) XXX_Unmarshal(b []byte) error + type Layout struct + QuantitiesByGroup map[string]uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Layout) Descriptor() ([]byte, []int) + func (*Layout) ProtoMessage() + func (dst *Layout) XXX_Merge(src proto.Message) + func (m *Layout) GetQuantitiesByGroup() map[string]uint32 + func (m *Layout) Reset() + func (m *Layout) String() string + func (m *Layout) XXX_DiscardUnknown() + func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Layout) XXX_Size() int + func (m *Layout) XXX_Unmarshal(b []byte) error + type LocalPeerQuery struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*LocalPeerQuery) Descriptor() ([]byte, []int) + func (*LocalPeerQuery) ProtoMessage() + func (dst *LocalPeerQuery) XXX_Merge(src proto.Message) + func (m *LocalPeerQuery) Reset() + func (m *LocalPeerQuery) String() string + func (m *LocalPeerQuery) XXX_DiscardUnknown() + func (m *LocalPeerQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *LocalPeerQuery) XXX_Size() int + func (m *LocalPeerQuery) XXX_Unmarshal(b []byte) error + type Peer struct + Identity []byte + MembershipInfo *gossip.Envelope + StateInfo *gossip.Envelope + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Peer) Descriptor() ([]byte, []int) + func (*Peer) ProtoMessage() + func (dst *Peer) XXX_Merge(src proto.Message) + func (m *Peer) GetIdentity() []byte + func (m *Peer) GetMembershipInfo() *gossip.Envelope + func (m *Peer) GetStateInfo() *gossip.Envelope + func (m *Peer) Reset() + func (m *Peer) String() string + func (m *Peer) XXX_DiscardUnknown() + func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Peer) XXX_Size() int + func (m *Peer) XXX_Unmarshal(b []byte) error + type PeerMembershipQuery struct + Filter *ChaincodeInterest + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PeerMembershipQuery) Descriptor() ([]byte, []int) + func (*PeerMembershipQuery) ProtoMessage() + func (dst *PeerMembershipQuery) XXX_Merge(src proto.Message) + func (m *PeerMembershipQuery) GetFilter() *ChaincodeInterest + func (m *PeerMembershipQuery) Reset() + func (m *PeerMembershipQuery) String() string + func (m *PeerMembershipQuery) XXX_DiscardUnknown() + func (m *PeerMembershipQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PeerMembershipQuery) XXX_Size() int + func (m *PeerMembershipQuery) XXX_Unmarshal(b []byte) error + type PeerMembershipResult struct + PeersByOrg map[string]*Peers + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PeerMembershipResult) Descriptor() ([]byte, []int) + func (*PeerMembershipResult) ProtoMessage() + func (dst *PeerMembershipResult) XXX_Merge(src proto.Message) + func (m *PeerMembershipResult) GetPeersByOrg() map[string]*Peers + func (m *PeerMembershipResult) Reset() + func (m *PeerMembershipResult) String() string + func (m *PeerMembershipResult) XXX_DiscardUnknown() + func (m *PeerMembershipResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PeerMembershipResult) XXX_Size() int + func (m *PeerMembershipResult) XXX_Unmarshal(b []byte) error + type Peers struct + Peers []*Peer + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Peers) Descriptor() ([]byte, []int) + func (*Peers) ProtoMessage() + func (dst *Peers) XXX_Merge(src proto.Message) + func (m *Peers) GetPeers() []*Peer + func (m *Peers) Reset() + func (m *Peers) String() string + func (m *Peers) XXX_DiscardUnknown() + func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Peers) XXX_Size() int + func (m *Peers) XXX_Unmarshal(b []byte) error + type Query struct + Channel string + Query isQuery_Query + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (*Query) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (dst *Query) XXX_Merge(src proto.Message) + func (m *Query) GetCcQuery() *ChaincodeQuery + func (m *Query) GetChannel() string + func (m *Query) GetConfigQuery() *ConfigQuery + func (m *Query) GetLocalPeers() *LocalPeerQuery + func (m *Query) GetPeerQuery() *PeerMembershipQuery + func (m *Query) GetQuery() isQuery_Query + func (m *Query) Reset() + func (m *Query) String() string + func (m *Query) XXX_DiscardUnknown() + func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Query) XXX_Size() int + func (m *Query) XXX_Unmarshal(b []byte) error + func (q *Query) GetType() QueryType + type QueryResult struct + Result isQueryResult_Result + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*QueryResult) Descriptor() ([]byte, []int) + func (*QueryResult) ProtoMessage() + func (*QueryResult) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (dst *QueryResult) XXX_Merge(src proto.Message) + func (m *QueryResult) GetCcQueryRes() *ChaincodeQueryResult + func (m *QueryResult) GetConfigResult() *ConfigResult + func (m *QueryResult) GetError() *Error + func (m *QueryResult) GetMembers() *PeerMembershipResult + func (m *QueryResult) GetResult() isQueryResult_Result + func (m *QueryResult) Reset() + func (m *QueryResult) String() string + func (m *QueryResult) XXX_DiscardUnknown() + func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryResult) XXX_Size() int + func (m *QueryResult) XXX_Unmarshal(b []byte) error + type QueryResult_CcQueryRes struct + CcQueryRes *ChaincodeQueryResult + type QueryResult_ConfigResult struct + ConfigResult *ConfigResult + type QueryResult_Error struct + Error *Error + type QueryResult_Members struct + Members *PeerMembershipResult + type QueryType uint8 + const ChaincodeQueryType + const ConfigQueryType + const InvalidQueryType + const LocalMembershipQueryType + const PeerMembershipQueryType + type Query_CcQuery struct + CcQuery *ChaincodeQuery + type Query_ConfigQuery struct + ConfigQuery *ConfigQuery + type Query_LocalPeers struct + LocalPeers *LocalPeerQuery + type Query_PeerQuery struct + PeerQuery *PeerMembershipQuery + type Request struct + Authentication *AuthInfo + Queries []*Query + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (dst *Request) XXX_Merge(src proto.Message) + func (m *Request) GetAuthentication() *AuthInfo + func (m *Request) GetQueries() []*Query + func (m *Request) Reset() + func (m *Request) String() string + func (m *Request) XXX_DiscardUnknown() + func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Request) XXX_Size() int + func (m *Request) XXX_Unmarshal(b []byte) error + type Response struct + Results []*QueryResult + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (dst *Response) XXX_Merge(src proto.Message) + func (m *Response) ConfigAt(i int) (*ConfigResult, *Error) + func (m *Response) EndorsersAt(i int) (*ChaincodeQueryResult, *Error) + func (m *Response) GetResults() []*QueryResult + func (m *Response) MembershipAt(i int) (*PeerMembershipResult, *Error) + func (m *Response) Reset() + func (m *Response) String() string + func (m *Response) XXX_DiscardUnknown() + func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Response) XXX_Size() int + func (m *Response) XXX_Unmarshal(b []byte) error + type SignedRequest struct + Payload []byte + Signature []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SignedRequest) Descriptor() ([]byte, []int) + func (*SignedRequest) ProtoMessage() + func (dst *SignedRequest) XXX_Merge(src proto.Message) + func (m *SignedRequest) GetPayload() []byte + func (m *SignedRequest) GetSignature() []byte + func (m *SignedRequest) Reset() + func (m *SignedRequest) String() string + func (m *SignedRequest) XXX_DiscardUnknown() + func (m *SignedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignedRequest) XXX_Size() int + func (m *SignedRequest) XXX_Unmarshal(b []byte) error + func (sr *SignedRequest) ToRequest() (*Request, error)