1274 lines
47 KiB
Go
1274 lines
47 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: discovery/protocol.proto
|
|
|
|
package discovery
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
gossip "github.com/hyperledger/fabric-protos-go/gossip"
|
|
msp "github.com/hyperledger/fabric-protos-go/msp"
|
|
peer "github.com/hyperledger/fabric-protos-go/peer"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// SignedRequest 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.
|
|
type SignedRequest struct {
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignedRequest) Reset() { *m = SignedRequest{} }
|
|
func (m *SignedRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SignedRequest) ProtoMessage() {}
|
|
func (*SignedRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{0}
|
|
}
|
|
|
|
func (m *SignedRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignedRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SignedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignedRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SignedRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignedRequest.Merge(m, src)
|
|
}
|
|
func (m *SignedRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SignedRequest.Size(m)
|
|
}
|
|
func (m *SignedRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignedRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignedRequest proto.InternalMessageInfo
|
|
|
|
func (m *SignedRequest) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignedRequest) GetSignature() []byte {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Request contains authentication info about the client that sent the request
|
|
// and the queries it wishes to query the service
|
|
type Request struct {
|
|
// authentication contains information that the service uses to check
|
|
// the client's eligibility for the queries.
|
|
Authentication *AuthInfo `protobuf:"bytes,1,opt,name=authentication,proto3" json:"authentication,omitempty"`
|
|
// queries
|
|
Queries []*Query `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Request) Reset() { *m = Request{} }
|
|
func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
func (*Request) ProtoMessage() {}
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{1}
|
|
}
|
|
|
|
func (m *Request) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Request.Unmarshal(m, b)
|
|
}
|
|
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Request) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Request.Merge(m, src)
|
|
}
|
|
func (m *Request) XXX_Size() int {
|
|
return xxx_messageInfo_Request.Size(m)
|
|
}
|
|
func (m *Request) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Request.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Request proto.InternalMessageInfo
|
|
|
|
func (m *Request) GetAuthentication() *AuthInfo {
|
|
if m != nil {
|
|
return m.Authentication
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Request) GetQueries() []*Query {
|
|
if m != nil {
|
|
return m.Queries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Response struct {
|
|
// The results are returned in the same order of the queries
|
|
Results []*QueryResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Response) Reset() { *m = Response{} }
|
|
func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
func (*Response) ProtoMessage() {}
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{2}
|
|
}
|
|
|
|
func (m *Response) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Response.Unmarshal(m, b)
|
|
}
|
|
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Response) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Response.Merge(m, src)
|
|
}
|
|
func (m *Response) XXX_Size() int {
|
|
return xxx_messageInfo_Response.Size(m)
|
|
}
|
|
func (m *Response) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Response.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
func (m *Response) GetResults() []*QueryResult {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// AuthInfo aggregates authentication information that the server uses
|
|
// to authenticate the client
|
|
type AuthInfo struct {
|
|
// This is the identity of the client that is used to verify the signature
|
|
// on the SignedRequest's payload.
|
|
// It is a msp.SerializedIdentity in bytes form
|
|
ClientIdentity []byte `protobuf:"bytes,1,opt,name=client_identity,json=clientIdentity,proto3" json:"client_identity,omitempty"`
|
|
// This is the hash of the client's TLS cert.
|
|
// When the network is running with TLS, clients that don't include a certificate
|
|
// will be denied access to the service.
|
|
// Since the Request is encapsulated with a SignedRequest (which is signed),
|
|
// this binds the TLS session to the enrollement identity of the client and
|
|
// therefore both authenticates the client to the server,
|
|
// and also prevents the server from relaying the request message to another server.
|
|
ClientTlsCertHash []byte `protobuf:"bytes,2,opt,name=client_tls_cert_hash,json=clientTlsCertHash,proto3" json:"client_tls_cert_hash,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AuthInfo) Reset() { *m = AuthInfo{} }
|
|
func (m *AuthInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*AuthInfo) ProtoMessage() {}
|
|
func (*AuthInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{3}
|
|
}
|
|
|
|
func (m *AuthInfo) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AuthInfo.Unmarshal(m, b)
|
|
}
|
|
func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AuthInfo.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AuthInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AuthInfo.Merge(m, src)
|
|
}
|
|
func (m *AuthInfo) XXX_Size() int {
|
|
return xxx_messageInfo_AuthInfo.Size(m)
|
|
}
|
|
func (m *AuthInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AuthInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AuthInfo proto.InternalMessageInfo
|
|
|
|
func (m *AuthInfo) GetClientIdentity() []byte {
|
|
if m != nil {
|
|
return m.ClientIdentity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AuthInfo) GetClientTlsCertHash() []byte {
|
|
if m != nil {
|
|
return m.ClientTlsCertHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Query asks for information in the context of a specific channel
|
|
type Query struct {
|
|
Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
|
|
// Types that are valid to be assigned to Query:
|
|
// *Query_ConfigQuery
|
|
// *Query_PeerQuery
|
|
// *Query_CcQuery
|
|
// *Query_LocalPeers
|
|
Query isQuery_Query `protobuf_oneof:"query"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Query) Reset() { *m = Query{} }
|
|
func (m *Query) String() string { return proto.CompactTextString(m) }
|
|
func (*Query) ProtoMessage() {}
|
|
func (*Query) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{4}
|
|
}
|
|
|
|
func (m *Query) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Query.Unmarshal(m, b)
|
|
}
|
|
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Query) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Query.Merge(m, src)
|
|
}
|
|
func (m *Query) XXX_Size() int {
|
|
return xxx_messageInfo_Query.Size(m)
|
|
}
|
|
func (m *Query) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Query.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Query proto.InternalMessageInfo
|
|
|
|
func (m *Query) GetChannel() string {
|
|
if m != nil {
|
|
return m.Channel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isQuery_Query interface {
|
|
isQuery_Query()
|
|
}
|
|
|
|
type Query_ConfigQuery struct {
|
|
ConfigQuery *ConfigQuery `protobuf:"bytes,2,opt,name=config_query,json=configQuery,proto3,oneof"`
|
|
}
|
|
|
|
type Query_PeerQuery struct {
|
|
PeerQuery *PeerMembershipQuery `protobuf:"bytes,3,opt,name=peer_query,json=peerQuery,proto3,oneof"`
|
|
}
|
|
|
|
type Query_CcQuery struct {
|
|
CcQuery *ChaincodeQuery `protobuf:"bytes,4,opt,name=cc_query,json=ccQuery,proto3,oneof"`
|
|
}
|
|
|
|
type Query_LocalPeers struct {
|
|
LocalPeers *LocalPeerQuery `protobuf:"bytes,5,opt,name=local_peers,json=localPeers,proto3,oneof"`
|
|
}
|
|
|
|
func (*Query_ConfigQuery) isQuery_Query() {}
|
|
|
|
func (*Query_PeerQuery) isQuery_Query() {}
|
|
|
|
func (*Query_CcQuery) isQuery_Query() {}
|
|
|
|
func (*Query_LocalPeers) isQuery_Query() {}
|
|
|
|
func (m *Query) GetQuery() isQuery_Query {
|
|
if m != nil {
|
|
return m.Query
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Query) GetConfigQuery() *ConfigQuery {
|
|
if x, ok := m.GetQuery().(*Query_ConfigQuery); ok {
|
|
return x.ConfigQuery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Query) GetPeerQuery() *PeerMembershipQuery {
|
|
if x, ok := m.GetQuery().(*Query_PeerQuery); ok {
|
|
return x.PeerQuery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Query) GetCcQuery() *ChaincodeQuery {
|
|
if x, ok := m.GetQuery().(*Query_CcQuery); ok {
|
|
return x.CcQuery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Query) GetLocalPeers() *LocalPeerQuery {
|
|
if x, ok := m.GetQuery().(*Query_LocalPeers); ok {
|
|
return x.LocalPeers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*Query) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*Query_ConfigQuery)(nil),
|
|
(*Query_PeerQuery)(nil),
|
|
(*Query_CcQuery)(nil),
|
|
(*Query_LocalPeers)(nil),
|
|
}
|
|
}
|
|
|
|
// QueryResult 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.
|
|
type QueryResult struct {
|
|
// Types that are valid to be assigned to Result:
|
|
// *QueryResult_Error
|
|
// *QueryResult_ConfigResult
|
|
// *QueryResult_CcQueryRes
|
|
// *QueryResult_Members
|
|
Result isQueryResult_Result `protobuf_oneof:"result"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *QueryResult) Reset() { *m = QueryResult{} }
|
|
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryResult) ProtoMessage() {}
|
|
func (*QueryResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{5}
|
|
}
|
|
|
|
func (m *QueryResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_QueryResult.Unmarshal(m, b)
|
|
}
|
|
func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *QueryResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryResult.Merge(m, src)
|
|
}
|
|
func (m *QueryResult) XXX_Size() int {
|
|
return xxx_messageInfo_QueryResult.Size(m)
|
|
}
|
|
func (m *QueryResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryResult proto.InternalMessageInfo
|
|
|
|
type isQueryResult_Result interface {
|
|
isQueryResult_Result()
|
|
}
|
|
|
|
type QueryResult_Error struct {
|
|
Error *Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
type QueryResult_ConfigResult struct {
|
|
ConfigResult *ConfigResult `protobuf:"bytes,2,opt,name=config_result,json=configResult,proto3,oneof"`
|
|
}
|
|
|
|
type QueryResult_CcQueryRes struct {
|
|
CcQueryRes *ChaincodeQueryResult `protobuf:"bytes,3,opt,name=cc_query_res,json=ccQueryRes,proto3,oneof"`
|
|
}
|
|
|
|
type QueryResult_Members struct {
|
|
Members *PeerMembershipResult `protobuf:"bytes,4,opt,name=members,proto3,oneof"`
|
|
}
|
|
|
|
func (*QueryResult_Error) isQueryResult_Result() {}
|
|
|
|
func (*QueryResult_ConfigResult) isQueryResult_Result() {}
|
|
|
|
func (*QueryResult_CcQueryRes) isQueryResult_Result() {}
|
|
|
|
func (*QueryResult_Members) isQueryResult_Result() {}
|
|
|
|
func (m *QueryResult) GetResult() isQueryResult_Result {
|
|
if m != nil {
|
|
return m.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResult) GetError() *Error {
|
|
if x, ok := m.GetResult().(*QueryResult_Error); ok {
|
|
return x.Error
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResult) GetConfigResult() *ConfigResult {
|
|
if x, ok := m.GetResult().(*QueryResult_ConfigResult); ok {
|
|
return x.ConfigResult
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResult) GetCcQueryRes() *ChaincodeQueryResult {
|
|
if x, ok := m.GetResult().(*QueryResult_CcQueryRes); ok {
|
|
return x.CcQueryRes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResult) GetMembers() *PeerMembershipResult {
|
|
if x, ok := m.GetResult().(*QueryResult_Members); ok {
|
|
return x.Members
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*QueryResult) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*QueryResult_Error)(nil),
|
|
(*QueryResult_ConfigResult)(nil),
|
|
(*QueryResult_CcQueryRes)(nil),
|
|
(*QueryResult_Members)(nil),
|
|
}
|
|
}
|
|
|
|
// ConfigQuery requests a ConfigResult
|
|
type ConfigQuery struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ConfigQuery) Reset() { *m = ConfigQuery{} }
|
|
func (m *ConfigQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ConfigQuery) ProtoMessage() {}
|
|
func (*ConfigQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{6}
|
|
}
|
|
|
|
func (m *ConfigQuery) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ConfigQuery.Unmarshal(m, b)
|
|
}
|
|
func (m *ConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ConfigQuery.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ConfigQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ConfigQuery.Merge(m, src)
|
|
}
|
|
func (m *ConfigQuery) XXX_Size() int {
|
|
return xxx_messageInfo_ConfigQuery.Size(m)
|
|
}
|
|
func (m *ConfigQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ConfigQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ConfigQuery proto.InternalMessageInfo
|
|
|
|
type ConfigResult struct {
|
|
// msps is a map from MSP_ID to FabricMSPConfig
|
|
Msps 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"`
|
|
// orderers is a map from MSP_ID to endpoint lists of orderers
|
|
Orderers 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"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ConfigResult) Reset() { *m = ConfigResult{} }
|
|
func (m *ConfigResult) String() string { return proto.CompactTextString(m) }
|
|
func (*ConfigResult) ProtoMessage() {}
|
|
func (*ConfigResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{7}
|
|
}
|
|
|
|
func (m *ConfigResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ConfigResult.Unmarshal(m, b)
|
|
}
|
|
func (m *ConfigResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ConfigResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ConfigResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ConfigResult.Merge(m, src)
|
|
}
|
|
func (m *ConfigResult) XXX_Size() int {
|
|
return xxx_messageInfo_ConfigResult.Size(m)
|
|
}
|
|
func (m *ConfigResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ConfigResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ConfigResult proto.InternalMessageInfo
|
|
|
|
func (m *ConfigResult) GetMsps() map[string]*msp.FabricMSPConfig {
|
|
if m != nil {
|
|
return m.Msps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ConfigResult) GetOrderers() map[string]*Endpoints {
|
|
if m != nil {
|
|
return m.Orderers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PeerMembershipQuery 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.
|
|
type PeerMembershipQuery struct {
|
|
Filter *peer.ChaincodeInterest `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PeerMembershipQuery) Reset() { *m = PeerMembershipQuery{} }
|
|
func (m *PeerMembershipQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*PeerMembershipQuery) ProtoMessage() {}
|
|
func (*PeerMembershipQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{8}
|
|
}
|
|
|
|
func (m *PeerMembershipQuery) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PeerMembershipQuery.Unmarshal(m, b)
|
|
}
|
|
func (m *PeerMembershipQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PeerMembershipQuery.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PeerMembershipQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PeerMembershipQuery.Merge(m, src)
|
|
}
|
|
func (m *PeerMembershipQuery) XXX_Size() int {
|
|
return xxx_messageInfo_PeerMembershipQuery.Size(m)
|
|
}
|
|
func (m *PeerMembershipQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PeerMembershipQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PeerMembershipQuery proto.InternalMessageInfo
|
|
|
|
func (m *PeerMembershipQuery) GetFilter() *peer.ChaincodeInterest {
|
|
if m != nil {
|
|
return m.Filter
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// PeerMembershipResult contains peers mapped by their organizations (MSP_ID)
|
|
type PeerMembershipResult struct {
|
|
PeersByOrg 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"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PeerMembershipResult) Reset() { *m = PeerMembershipResult{} }
|
|
func (m *PeerMembershipResult) String() string { return proto.CompactTextString(m) }
|
|
func (*PeerMembershipResult) ProtoMessage() {}
|
|
func (*PeerMembershipResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{9}
|
|
}
|
|
|
|
func (m *PeerMembershipResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PeerMembershipResult.Unmarshal(m, b)
|
|
}
|
|
func (m *PeerMembershipResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PeerMembershipResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PeerMembershipResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PeerMembershipResult.Merge(m, src)
|
|
}
|
|
func (m *PeerMembershipResult) XXX_Size() int {
|
|
return xxx_messageInfo_PeerMembershipResult.Size(m)
|
|
}
|
|
func (m *PeerMembershipResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PeerMembershipResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PeerMembershipResult proto.InternalMessageInfo
|
|
|
|
func (m *PeerMembershipResult) GetPeersByOrg() map[string]*Peers {
|
|
if m != nil {
|
|
return m.PeersByOrg
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ChaincodeQuery 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.
|
|
type ChaincodeQuery struct {
|
|
Interests []*peer.ChaincodeInterest `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChaincodeQuery) Reset() { *m = ChaincodeQuery{} }
|
|
func (m *ChaincodeQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*ChaincodeQuery) ProtoMessage() {}
|
|
func (*ChaincodeQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{10}
|
|
}
|
|
|
|
func (m *ChaincodeQuery) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChaincodeQuery.Unmarshal(m, b)
|
|
}
|
|
func (m *ChaincodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChaincodeQuery.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChaincodeQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChaincodeQuery.Merge(m, src)
|
|
}
|
|
func (m *ChaincodeQuery) XXX_Size() int {
|
|
return xxx_messageInfo_ChaincodeQuery.Size(m)
|
|
}
|
|
func (m *ChaincodeQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChaincodeQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChaincodeQuery proto.InternalMessageInfo
|
|
|
|
func (m *ChaincodeQuery) GetInterests() []*peer.ChaincodeInterest {
|
|
if m != nil {
|
|
return m.Interests
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ChaincodeQueryResult contains EndorsementDescriptors for
|
|
// chaincodes
|
|
type ChaincodeQueryResult struct {
|
|
Content []*EndorsementDescriptor `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChaincodeQueryResult) Reset() { *m = ChaincodeQueryResult{} }
|
|
func (m *ChaincodeQueryResult) String() string { return proto.CompactTextString(m) }
|
|
func (*ChaincodeQueryResult) ProtoMessage() {}
|
|
func (*ChaincodeQueryResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{11}
|
|
}
|
|
|
|
func (m *ChaincodeQueryResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChaincodeQueryResult.Unmarshal(m, b)
|
|
}
|
|
func (m *ChaincodeQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChaincodeQueryResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChaincodeQueryResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChaincodeQueryResult.Merge(m, src)
|
|
}
|
|
func (m *ChaincodeQueryResult) XXX_Size() int {
|
|
return xxx_messageInfo_ChaincodeQueryResult.Size(m)
|
|
}
|
|
func (m *ChaincodeQueryResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChaincodeQueryResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChaincodeQueryResult proto.InternalMessageInfo
|
|
|
|
func (m *ChaincodeQueryResult) GetContent() []*EndorsementDescriptor {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// LocalPeerQuery queries for peers in a non channel context
|
|
type LocalPeerQuery struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LocalPeerQuery) Reset() { *m = LocalPeerQuery{} }
|
|
func (m *LocalPeerQuery) String() string { return proto.CompactTextString(m) }
|
|
func (*LocalPeerQuery) ProtoMessage() {}
|
|
func (*LocalPeerQuery) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{12}
|
|
}
|
|
|
|
func (m *LocalPeerQuery) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LocalPeerQuery.Unmarshal(m, b)
|
|
}
|
|
func (m *LocalPeerQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LocalPeerQuery.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LocalPeerQuery) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LocalPeerQuery.Merge(m, src)
|
|
}
|
|
func (m *LocalPeerQuery) XXX_Size() int {
|
|
return xxx_messageInfo_LocalPeerQuery.Size(m)
|
|
}
|
|
func (m *LocalPeerQuery) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LocalPeerQuery.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LocalPeerQuery proto.InternalMessageInfo
|
|
|
|
// EndorsementDescriptor 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 --> 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.
|
|
// 1) Select a layout l: G --> N out of the layouts given.
|
|
// l is the quantities_by_group field of a Layout, and it maps a group to an integer.
|
|
// 2) R = {} (an empty set of peers)
|
|
// 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)
|
|
// 4) The set of peers R is the peers the client needs to request endorsements from
|
|
type EndorsementDescriptor struct {
|
|
Chaincode string `protobuf:"bytes,1,opt,name=chaincode,proto3" json:"chaincode,omitempty"`
|
|
// Specifies the endorsers, separated to groups.
|
|
EndorsersByGroups 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"`
|
|
// Specifies options of fulfulling the endorsement policy.
|
|
// Each option lists the group names, and the amount of signatures needed
|
|
// from each group.
|
|
Layouts []*Layout `protobuf:"bytes,3,rep,name=layouts,proto3" json:"layouts,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *EndorsementDescriptor) Reset() { *m = EndorsementDescriptor{} }
|
|
func (m *EndorsementDescriptor) String() string { return proto.CompactTextString(m) }
|
|
func (*EndorsementDescriptor) ProtoMessage() {}
|
|
func (*EndorsementDescriptor) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{13}
|
|
}
|
|
|
|
func (m *EndorsementDescriptor) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EndorsementDescriptor.Unmarshal(m, b)
|
|
}
|
|
func (m *EndorsementDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EndorsementDescriptor.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *EndorsementDescriptor) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EndorsementDescriptor.Merge(m, src)
|
|
}
|
|
func (m *EndorsementDescriptor) XXX_Size() int {
|
|
return xxx_messageInfo_EndorsementDescriptor.Size(m)
|
|
}
|
|
func (m *EndorsementDescriptor) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EndorsementDescriptor.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_EndorsementDescriptor proto.InternalMessageInfo
|
|
|
|
func (m *EndorsementDescriptor) GetChaincode() string {
|
|
if m != nil {
|
|
return m.Chaincode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EndorsementDescriptor) GetEndorsersByGroups() map[string]*Peers {
|
|
if m != nil {
|
|
return m.EndorsersByGroups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *EndorsementDescriptor) GetLayouts() []*Layout {
|
|
if m != nil {
|
|
return m.Layouts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Layout contains a mapping from a group name to number of peers
|
|
// that are needed for fulfilling an endorsement policy
|
|
type Layout struct {
|
|
// Specifies how many non repeated signatures of each group
|
|
// are needed for endorsement
|
|
QuantitiesByGroup 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"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Layout) Reset() { *m = Layout{} }
|
|
func (m *Layout) String() string { return proto.CompactTextString(m) }
|
|
func (*Layout) ProtoMessage() {}
|
|
func (*Layout) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{14}
|
|
}
|
|
|
|
func (m *Layout) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Layout.Unmarshal(m, b)
|
|
}
|
|
func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Layout.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Layout) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Layout.Merge(m, src)
|
|
}
|
|
func (m *Layout) XXX_Size() int {
|
|
return xxx_messageInfo_Layout.Size(m)
|
|
}
|
|
func (m *Layout) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Layout.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Layout proto.InternalMessageInfo
|
|
|
|
func (m *Layout) GetQuantitiesByGroup() map[string]uint32 {
|
|
if m != nil {
|
|
return m.QuantitiesByGroup
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Peers contains a list of Peer(s)
|
|
type Peers struct {
|
|
Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Peers) Reset() { *m = Peers{} }
|
|
func (m *Peers) String() string { return proto.CompactTextString(m) }
|
|
func (*Peers) ProtoMessage() {}
|
|
func (*Peers) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{15}
|
|
}
|
|
|
|
func (m *Peers) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Peers.Unmarshal(m, b)
|
|
}
|
|
func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Peers.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Peers) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Peers.Merge(m, src)
|
|
}
|
|
func (m *Peers) XXX_Size() int {
|
|
return xxx_messageInfo_Peers.Size(m)
|
|
}
|
|
func (m *Peers) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Peers.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Peers proto.InternalMessageInfo
|
|
|
|
func (m *Peers) GetPeers() []*Peer {
|
|
if m != nil {
|
|
return m.Peers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Peer contains information about the peer such as its channel specific
|
|
// state, and membership information.
|
|
type Peer struct {
|
|
// This is an Envelope of a GossipMessage with a gossip.StateInfo message
|
|
StateInfo *gossip.Envelope `protobuf:"bytes,1,opt,name=state_info,json=stateInfo,proto3" json:"state_info,omitempty"`
|
|
// This is an Envelope of a GossipMessage with a gossip.AliveMessage message
|
|
MembershipInfo *gossip.Envelope `protobuf:"bytes,2,opt,name=membership_info,json=membershipInfo,proto3" json:"membership_info,omitempty"`
|
|
// This is the msp.SerializedIdentity of the peer, represented in bytes.
|
|
Identity []byte `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Peer) Reset() { *m = Peer{} }
|
|
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
|
func (*Peer) ProtoMessage() {}
|
|
func (*Peer) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{16}
|
|
}
|
|
|
|
func (m *Peer) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Peer.Unmarshal(m, b)
|
|
}
|
|
func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Peer.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Peer) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Peer.Merge(m, src)
|
|
}
|
|
func (m *Peer) XXX_Size() int {
|
|
return xxx_messageInfo_Peer.Size(m)
|
|
}
|
|
func (m *Peer) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Peer.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Peer proto.InternalMessageInfo
|
|
|
|
func (m *Peer) GetStateInfo() *gossip.Envelope {
|
|
if m != nil {
|
|
return m.StateInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Peer) GetMembershipInfo() *gossip.Envelope {
|
|
if m != nil {
|
|
return m.MembershipInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Peer) GetIdentity() []byte {
|
|
if m != nil {
|
|
return m.Identity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Error denotes that something went wrong and contains the error message
|
|
type Error struct {
|
|
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Error) Reset() { *m = Error{} }
|
|
func (m *Error) String() string { return proto.CompactTextString(m) }
|
|
func (*Error) ProtoMessage() {}
|
|
func (*Error) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{17}
|
|
}
|
|
|
|
func (m *Error) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Error.Unmarshal(m, b)
|
|
}
|
|
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Error.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Error) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Error.Merge(m, src)
|
|
}
|
|
func (m *Error) XXX_Size() int {
|
|
return xxx_messageInfo_Error.Size(m)
|
|
}
|
|
func (m *Error) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Error.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Error proto.InternalMessageInfo
|
|
|
|
func (m *Error) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Endpoints is a list of Endpoint(s)
|
|
type Endpoints struct {
|
|
Endpoint []*Endpoint `protobuf:"bytes,1,rep,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Endpoints) Reset() { *m = Endpoints{} }
|
|
func (m *Endpoints) String() string { return proto.CompactTextString(m) }
|
|
func (*Endpoints) ProtoMessage() {}
|
|
func (*Endpoints) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{18}
|
|
}
|
|
|
|
func (m *Endpoints) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Endpoints.Unmarshal(m, b)
|
|
}
|
|
func (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Endpoints.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Endpoints) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Endpoints.Merge(m, src)
|
|
}
|
|
func (m *Endpoints) XXX_Size() int {
|
|
return xxx_messageInfo_Endpoints.Size(m)
|
|
}
|
|
func (m *Endpoints) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Endpoints.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Endpoints proto.InternalMessageInfo
|
|
|
|
func (m *Endpoints) GetEndpoint() []*Endpoint {
|
|
if m != nil {
|
|
return m.Endpoint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Endpoint is a combination of a host and a port
|
|
type Endpoint struct {
|
|
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
|
|
Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Endpoint) Reset() { *m = Endpoint{} }
|
|
func (m *Endpoint) String() string { return proto.CompactTextString(m) }
|
|
func (*Endpoint) ProtoMessage() {}
|
|
func (*Endpoint) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_ce69bf33982206ff, []int{19}
|
|
}
|
|
|
|
func (m *Endpoint) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Endpoint.Unmarshal(m, b)
|
|
}
|
|
func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Endpoint) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Endpoint.Merge(m, src)
|
|
}
|
|
func (m *Endpoint) XXX_Size() int {
|
|
return xxx_messageInfo_Endpoint.Size(m)
|
|
}
|
|
func (m *Endpoint) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Endpoint.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Endpoint proto.InternalMessageInfo
|
|
|
|
func (m *Endpoint) GetHost() string {
|
|
if m != nil {
|
|
return m.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Endpoint) GetPort() uint32 {
|
|
if m != nil {
|
|
return m.Port
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*SignedRequest)(nil), "discovery.SignedRequest")
|
|
proto.RegisterType((*Request)(nil), "discovery.Request")
|
|
proto.RegisterType((*Response)(nil), "discovery.Response")
|
|
proto.RegisterType((*AuthInfo)(nil), "discovery.AuthInfo")
|
|
proto.RegisterType((*Query)(nil), "discovery.Query")
|
|
proto.RegisterType((*QueryResult)(nil), "discovery.QueryResult")
|
|
proto.RegisterType((*ConfigQuery)(nil), "discovery.ConfigQuery")
|
|
proto.RegisterType((*ConfigResult)(nil), "discovery.ConfigResult")
|
|
proto.RegisterMapType((map[string]*msp.FabricMSPConfig)(nil), "discovery.ConfigResult.MspsEntry")
|
|
proto.RegisterMapType((map[string]*Endpoints)(nil), "discovery.ConfigResult.OrderersEntry")
|
|
proto.RegisterType((*PeerMembershipQuery)(nil), "discovery.PeerMembershipQuery")
|
|
proto.RegisterType((*PeerMembershipResult)(nil), "discovery.PeerMembershipResult")
|
|
proto.RegisterMapType((map[string]*Peers)(nil), "discovery.PeerMembershipResult.PeersByOrgEntry")
|
|
proto.RegisterType((*ChaincodeQuery)(nil), "discovery.ChaincodeQuery")
|
|
proto.RegisterType((*ChaincodeQueryResult)(nil), "discovery.ChaincodeQueryResult")
|
|
proto.RegisterType((*LocalPeerQuery)(nil), "discovery.LocalPeerQuery")
|
|
proto.RegisterType((*EndorsementDescriptor)(nil), "discovery.EndorsementDescriptor")
|
|
proto.RegisterMapType((map[string]*Peers)(nil), "discovery.EndorsementDescriptor.EndorsersByGroupsEntry")
|
|
proto.RegisterType((*Layout)(nil), "discovery.Layout")
|
|
proto.RegisterMapType((map[string]uint32)(nil), "discovery.Layout.QuantitiesByGroupEntry")
|
|
proto.RegisterType((*Peers)(nil), "discovery.Peers")
|
|
proto.RegisterType((*Peer)(nil), "discovery.Peer")
|
|
proto.RegisterType((*Error)(nil), "discovery.Error")
|
|
proto.RegisterType((*Endpoints)(nil), "discovery.Endpoints")
|
|
proto.RegisterType((*Endpoint)(nil), "discovery.Endpoint")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("discovery/protocol.proto", fileDescriptor_ce69bf33982206ff) }
|
|
|
|
var fileDescriptor_ce69bf33982206ff = []byte{
|
|
// 1113 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x5b, 0x6f, 0xe3, 0x44,
|
|
0x14, 0x6e, 0xd2, 0xa6, 0x49, 0x4e, 0x7a, 0x9d, 0x86, 0x92, 0x8d, 0x56, 0x6c, 0xd7, 0xd2, 0xb2,
|
|
0xd5, 0xa2, 0x75, 0xd8, 0x22, 0x58, 0x76, 0x5b, 0x81, 0xb6, 0x97, 0xdd, 0x54, 0xa2, 0x6a, 0xeb,
|
|
0x45, 0x08, 0x21, 0xa4, 0xc8, 0x75, 0x4e, 0x6d, 0x0b, 0xdb, 0xe3, 0xce, 0x8c, 0x2b, 0xf9, 0x99,
|
|
0x77, 0x7e, 0x02, 0x2f, 0xbc, 0x20, 0x7e, 0x02, 0xbf, 0x0e, 0x79, 0x2e, 0x8e, 0x93, 0xa6, 0x2c,
|
|
0x12, 0x6f, 0x33, 0x67, 0xbe, 0xef, 0x5c, 0xbe, 0x73, 0x3c, 0x63, 0xe8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1,
|
|
0x21, 0xdf, 0x18, 0xf9, 0x56, 0x97, 0x83, 0xae, 0xde, 0x6a, 0x3d, 0xc6, 0x07, 0xd0, 0x2e, 0x2f,
|
|
0x21, 0x32, 0x80, 0x16, 0xea, 0x8d, 0x2e, 0x75, 0x6b, 0xce, 0x65, 0xe5, 0x94, 0x20, 0x6b, 0x0f,
|
|
0x5a, 0xc6, 0x4a, 0x08, 0x2c, 0x05, 0x94, 0x9b, 0x00, 0x72, 0x5d, 0xd8, 0x52, 0xca, 0x84, 0x96,
|
|
0x56, 0xae, 0xf7, 0xde, 0x42, 0xfb, 0xd8, 0xf8, 0x24, 0xaf, 0xa0, 0x65, 0x36, 0xa4, 0x57, 0x89,
|
|
0x35, 0xf5, 0x13, 0xd7, 0xaf, 0x66, 0x61, 0xfe, 0x90, 0x0e, 0x7f, 0x86, 0xa7, 0x94, 0xf9, 0x76,
|
|
0x90, 0xa7, 0xc8, 0x22, 0x1c, 0xfb, 0xc8, 0xec, 0x6b, 0x79, 0x4f, 0x9b, 0x2b, 0xa1, 0xe4, 0xfc,
|
|
0xf4, 0xc2, 0x0f, 0x45, 0x90, 0x5d, 0xd9, 0x1e, 0x8d, 0x07, 0x15, 0xfc, 0x40, 0xe1, 0x9f, 0x2b,
|
|
0xfc, 0x73, 0x9f, 0x0e, 0x4a, 0xca, 0xd5, 0xb2, 0x34, 0x7e, 0xf1, 0x4f, 0x00, 0x00, 0x00, 0xff,
|
|
0xff, 0xc5, 0x26, 0x97, 0xc6, 0xc0, 0x0a, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// DiscoveryClient is the client API for Discovery service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type DiscoveryClient interface {
|
|
// Discover receives a signed request, and returns a response.
|
|
Discover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
type discoveryClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient {
|
|
return &discoveryClient{cc}
|
|
}
|
|
|
|
func (c *discoveryClient) Discover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, "/discovery.Discovery/Discover", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// DiscoveryServer is the server API for Discovery service.
|
|
type DiscoveryServer interface {
|
|
// Discover receives a signed request, and returns a response.
|
|
Discover(context.Context, *SignedRequest) (*Response, error)
|
|
}
|
|
|
|
// UnimplementedDiscoveryServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedDiscoveryServer struct {
|
|
}
|
|
|
|
func (*UnimplementedDiscoveryServer) Discover(ctx context.Context, req *SignedRequest) (*Response, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Discover not implemented")
|
|
}
|
|
|
|
func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer) {
|
|
s.RegisterService(&_Discovery_serviceDesc, srv)
|
|
}
|
|
|
|
func _Discovery_Discover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SignedRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(DiscoveryServer).Discover(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/discovery.Discovery/Discover",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(DiscoveryServer).Discover(ctx, req.(*SignedRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Discovery_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "discovery.Discovery",
|
|
HandlerType: (*DiscoveryServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Discover",
|
|
Handler: _Discovery_Discover_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "discovery/protocol.proto",
|
|
}
|