fabric: github.com/hyperledger/fabric/protos/discovery Index | Files

package discovery

import "github.com/hyperledger/fabric/protos/discovery"

Index

Package Files

extensions.go protocol.pb.go

func RegisterDiscoveryServer Uses

func RegisterDiscoveryServer(s *grpc.Server, srv DiscoveryServer)

type AuthInfo Uses

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:"-"`
}

AuthInfo aggregates authentication information that the server uses to authenticate the client

func (*AuthInfo) Descriptor Uses

func (*AuthInfo) Descriptor() ([]byte, []int)

func (*AuthInfo) GetClientIdentity Uses

func (m *AuthInfo) GetClientIdentity() []byte

func (*AuthInfo) GetClientTlsCertHash Uses

func (m *AuthInfo) GetClientTlsCertHash() []byte

func (*AuthInfo) ProtoMessage Uses

func (*AuthInfo) ProtoMessage()

func (*AuthInfo) Reset Uses

func (m *AuthInfo) Reset()

func (*AuthInfo) String Uses

func (m *AuthInfo) String() string

func (*AuthInfo) XXX_DiscardUnknown Uses

func (m *AuthInfo) XXX_DiscardUnknown()

func (*AuthInfo) XXX_Marshal Uses

func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthInfo) XXX_Merge Uses

func (dst *AuthInfo) XXX_Merge(src proto.Message)

func (*AuthInfo) XXX_Size Uses

func (m *AuthInfo) XXX_Size() int

func (*AuthInfo) XXX_Unmarshal Uses

func (m *AuthInfo) XXX_Unmarshal(b []byte) error

type ChaincodeCall Uses

type ChaincodeCall struct {
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    CollectionNames      []string `protobuf:"bytes,2,rep,name=collection_names,json=collectionNames,proto3" json:"collection_names,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ChaincodeCall defines a call to a chaincode. It may have collections that are related to the chaincode

func (*ChaincodeCall) Descriptor Uses

func (*ChaincodeCall) Descriptor() ([]byte, []int)

func (*ChaincodeCall) GetCollectionNames Uses

func (m *ChaincodeCall) GetCollectionNames() []string

func (*ChaincodeCall) GetName Uses

func (m *ChaincodeCall) GetName() string

func (*ChaincodeCall) ProtoMessage Uses

func (*ChaincodeCall) ProtoMessage()

func (*ChaincodeCall) Reset Uses

func (m *ChaincodeCall) Reset()

func (*ChaincodeCall) String Uses

func (m *ChaincodeCall) String() string

func (*ChaincodeCall) XXX_DiscardUnknown Uses

func (m *ChaincodeCall) XXX_DiscardUnknown()

func (*ChaincodeCall) XXX_Marshal Uses

func (m *ChaincodeCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeCall) XXX_Merge Uses

func (dst *ChaincodeCall) XXX_Merge(src proto.Message)

func (*ChaincodeCall) XXX_Size Uses

func (m *ChaincodeCall) XXX_Size() int

func (*ChaincodeCall) XXX_Unmarshal Uses

func (m *ChaincodeCall) XXX_Unmarshal(b []byte) error

type ChaincodeInterest Uses

type ChaincodeInterest struct {
    Chaincodes           []*ChaincodeCall `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

ChaincodeInterest defines an interest about an endorsement for a specific single chaincode invocation. Multiple chaincodes indicate chaincode to chaincode invocations.

func (*ChaincodeInterest) Descriptor Uses

func (*ChaincodeInterest) Descriptor() ([]byte, []int)

func (*ChaincodeInterest) GetChaincodes Uses

func (m *ChaincodeInterest) GetChaincodes() []*ChaincodeCall

func (*ChaincodeInterest) ProtoMessage Uses

func (*ChaincodeInterest) ProtoMessage()

func (*ChaincodeInterest) Reset Uses

func (m *ChaincodeInterest) Reset()

func (*ChaincodeInterest) String Uses

func (m *ChaincodeInterest) String() string

func (*ChaincodeInterest) XXX_DiscardUnknown Uses

func (m *ChaincodeInterest) XXX_DiscardUnknown()

func (*ChaincodeInterest) XXX_Marshal Uses

func (m *ChaincodeInterest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeInterest) XXX_Merge Uses

func (dst *ChaincodeInterest) XXX_Merge(src proto.Message)

func (*ChaincodeInterest) XXX_Size Uses

func (m *ChaincodeInterest) XXX_Size() int

func (*ChaincodeInterest) XXX_Unmarshal Uses

func (m *ChaincodeInterest) XXX_Unmarshal(b []byte) error

type ChaincodeQuery Uses

type ChaincodeQuery struct {
    Interests            []*ChaincodeInterest `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

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.

func (*ChaincodeQuery) Descriptor Uses

func (*ChaincodeQuery) Descriptor() ([]byte, []int)

func (*ChaincodeQuery) GetInterests Uses

func (m *ChaincodeQuery) GetInterests() []*ChaincodeInterest

func (*ChaincodeQuery) ProtoMessage Uses

func (*ChaincodeQuery) ProtoMessage()

func (*ChaincodeQuery) Reset Uses

func (m *ChaincodeQuery) Reset()

func (*ChaincodeQuery) String Uses

func (m *ChaincodeQuery) String() string

func (*ChaincodeQuery) XXX_DiscardUnknown Uses

func (m *ChaincodeQuery) XXX_DiscardUnknown()

func (*ChaincodeQuery) XXX_Marshal Uses

func (m *ChaincodeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeQuery) XXX_Merge Uses

func (dst *ChaincodeQuery) XXX_Merge(src proto.Message)

func (*ChaincodeQuery) XXX_Size Uses

func (m *ChaincodeQuery) XXX_Size() int

func (*ChaincodeQuery) XXX_Unmarshal Uses

func (m *ChaincodeQuery) XXX_Unmarshal(b []byte) error

type ChaincodeQueryResult Uses

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:"-"`
}

ChaincodeQueryResult contains EndorsementDescriptors for chaincodes

func (*ChaincodeQueryResult) Descriptor Uses

func (*ChaincodeQueryResult) Descriptor() ([]byte, []int)

func (*ChaincodeQueryResult) GetContent Uses

func (m *ChaincodeQueryResult) GetContent() []*EndorsementDescriptor

func (*ChaincodeQueryResult) ProtoMessage Uses

func (*ChaincodeQueryResult) ProtoMessage()

func (*ChaincodeQueryResult) Reset Uses

func (m *ChaincodeQueryResult) Reset()

func (*ChaincodeQueryResult) String Uses

func (m *ChaincodeQueryResult) String() string

func (*ChaincodeQueryResult) XXX_DiscardUnknown Uses

func (m *ChaincodeQueryResult) XXX_DiscardUnknown()

func (*ChaincodeQueryResult) XXX_Marshal Uses

func (m *ChaincodeQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChaincodeQueryResult) XXX_Merge Uses

func (dst *ChaincodeQueryResult) XXX_Merge(src proto.Message)

func (*ChaincodeQueryResult) XXX_Size Uses

func (m *ChaincodeQueryResult) XXX_Size() int

func (*ChaincodeQueryResult) XXX_Unmarshal Uses

func (m *ChaincodeQueryResult) XXX_Unmarshal(b []byte) error

type ConfigQuery Uses

type ConfigQuery struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ConfigQuery requests a ConfigResult

func (*ConfigQuery) Descriptor Uses

func (*ConfigQuery) Descriptor() ([]byte, []int)

func (*ConfigQuery) ProtoMessage Uses

func (*ConfigQuery) ProtoMessage()

func (*ConfigQuery) Reset Uses

func (m *ConfigQuery) Reset()

func (*ConfigQuery) String Uses

func (m *ConfigQuery) String() string

func (*ConfigQuery) XXX_DiscardUnknown Uses

func (m *ConfigQuery) XXX_DiscardUnknown()

func (*ConfigQuery) XXX_Marshal Uses

func (m *ConfigQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigQuery) XXX_Merge Uses

func (dst *ConfigQuery) XXX_Merge(src proto.Message)

func (*ConfigQuery) XXX_Size Uses

func (m *ConfigQuery) XXX_Size() int

func (*ConfigQuery) XXX_Unmarshal Uses

func (m *ConfigQuery) XXX_Unmarshal(b []byte) error

type ConfigResult Uses

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 (*ConfigResult) Descriptor Uses

func (*ConfigResult) Descriptor() ([]byte, []int)

func (*ConfigResult) GetMsps Uses

func (m *ConfigResult) GetMsps() map[string]*msp.FabricMSPConfig

func (*ConfigResult) GetOrderers Uses

func (m *ConfigResult) GetOrderers() map[string]*Endpoints

func (*ConfigResult) ProtoMessage Uses

func (*ConfigResult) ProtoMessage()

func (*ConfigResult) Reset Uses

func (m *ConfigResult) Reset()

func (*ConfigResult) String Uses

func (m *ConfigResult) String() string

func (*ConfigResult) XXX_DiscardUnknown Uses

func (m *ConfigResult) XXX_DiscardUnknown()

func (*ConfigResult) XXX_Marshal Uses

func (m *ConfigResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigResult) XXX_Merge Uses

func (dst *ConfigResult) XXX_Merge(src proto.Message)

func (*ConfigResult) XXX_Size Uses

func (m *ConfigResult) XXX_Size() int

func (*ConfigResult) XXX_Unmarshal Uses

func (m *ConfigResult) XXX_Unmarshal(b []byte) error

type DiscoveryClient Uses

type DiscoveryClient interface {
    // Discover receives a signed request, and returns a response.
    Discover(ctx context.Context, in *SignedRequest, opts ...grpc.CallOption) (*Response, error)
}

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.

func NewDiscoveryClient Uses

func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient

type DiscoveryServer Uses

type DiscoveryServer interface {
    // Discover receives a signed request, and returns a response.
    Discover(context.Context, *SignedRequest) (*Response, error)
}

DiscoveryServer is the server API for Discovery service.

type EndorsementDescriptor Uses

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:"-"`
}

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

func (*EndorsementDescriptor) Descriptor Uses

func (*EndorsementDescriptor) Descriptor() ([]byte, []int)

func (*EndorsementDescriptor) GetChaincode Uses

func (m *EndorsementDescriptor) GetChaincode() string

func (*EndorsementDescriptor) GetEndorsersByGroups Uses

func (m *EndorsementDescriptor) GetEndorsersByGroups() map[string]*Peers

func (*EndorsementDescriptor) GetLayouts Uses

func (m *EndorsementDescriptor) GetLayouts() []*Layout

func (*EndorsementDescriptor) ProtoMessage Uses

func (*EndorsementDescriptor) ProtoMessage()

func (*EndorsementDescriptor) Reset Uses

func (m *EndorsementDescriptor) Reset()

func (*EndorsementDescriptor) String Uses

func (m *EndorsementDescriptor) String() string

func (*EndorsementDescriptor) XXX_DiscardUnknown Uses

func (m *EndorsementDescriptor) XXX_DiscardUnknown()

func (*EndorsementDescriptor) XXX_Marshal Uses

func (m *EndorsementDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndorsementDescriptor) XXX_Merge Uses

func (dst *EndorsementDescriptor) XXX_Merge(src proto.Message)

func (*EndorsementDescriptor) XXX_Size Uses

func (m *EndorsementDescriptor) XXX_Size() int

func (*EndorsementDescriptor) XXX_Unmarshal Uses

func (m *EndorsementDescriptor) XXX_Unmarshal(b []byte) error

type Endpoint Uses

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:"-"`
}

Endpoint is a combination of a host and a port

func (*Endpoint) Descriptor Uses

func (*Endpoint) Descriptor() ([]byte, []int)

func (*Endpoint) GetHost Uses

func (m *Endpoint) GetHost() string

func (*Endpoint) GetPort Uses

func (m *Endpoint) GetPort() uint32

func (*Endpoint) ProtoMessage Uses

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset Uses

func (m *Endpoint) Reset()

func (*Endpoint) String Uses

func (m *Endpoint) String() string

func (*Endpoint) XXX_DiscardUnknown Uses

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal Uses

func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endpoint) XXX_Merge Uses

func (dst *Endpoint) XXX_Merge(src proto.Message)

func (*Endpoint) XXX_Size Uses

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal Uses

func (m *Endpoint) XXX_Unmarshal(b []byte) error

type Endpoints Uses

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:"-"`
}

Endpoints is a list of Endpoint(s)

func (*Endpoints) Descriptor Uses

func (*Endpoints) Descriptor() ([]byte, []int)

func (*Endpoints) GetEndpoint Uses

func (m *Endpoints) GetEndpoint() []*Endpoint

func (*Endpoints) ProtoMessage Uses

func (*Endpoints) ProtoMessage()

func (*Endpoints) Reset Uses

func (m *Endpoints) Reset()

func (*Endpoints) String Uses

func (m *Endpoints) String() string

func (*Endpoints) XXX_DiscardUnknown Uses

func (m *Endpoints) XXX_DiscardUnknown()

func (*Endpoints) XXX_Marshal Uses

func (m *Endpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endpoints) XXX_Merge Uses

func (dst *Endpoints) XXX_Merge(src proto.Message)

func (*Endpoints) XXX_Size Uses

func (m *Endpoints) XXX_Size() int

func (*Endpoints) XXX_Unmarshal Uses

func (m *Endpoints) XXX_Unmarshal(b []byte) error

type Error Uses

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:"-"`
}

Error denotes that something went wrong and contains the error message

func (*Error) Descriptor Uses

func (*Error) Descriptor() ([]byte, []int)

func (*Error) GetContent Uses

func (m *Error) GetContent() string

func (*Error) ProtoMessage Uses

func (*Error) ProtoMessage()

func (*Error) Reset Uses

func (m *Error) Reset()

func (*Error) String Uses

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown Uses

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal Uses

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge Uses

func (dst *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size Uses

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal Uses

func (m *Error) XXX_Unmarshal(b []byte) error

type Layout Uses

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:"-"`
}

Layout contains a mapping from a group name to number of peers that are needed for fulfilling an endorsement policy

func (*Layout) Descriptor Uses

func (*Layout) Descriptor() ([]byte, []int)

func (*Layout) GetQuantitiesByGroup Uses

func (m *Layout) GetQuantitiesByGroup() map[string]uint32

func (*Layout) ProtoMessage Uses

func (*Layout) ProtoMessage()

func (*Layout) Reset Uses

func (m *Layout) Reset()

func (*Layout) String Uses

func (m *Layout) String() string

func (*Layout) XXX_DiscardUnknown Uses

func (m *Layout) XXX_DiscardUnknown()

func (*Layout) XXX_Marshal Uses

func (m *Layout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Layout) XXX_Merge Uses

func (dst *Layout) XXX_Merge(src proto.Message)

func (*Layout) XXX_Size Uses

func (m *Layout) XXX_Size() int

func (*Layout) XXX_Unmarshal Uses

func (m *Layout) XXX_Unmarshal(b []byte) error

type LocalPeerQuery Uses

type LocalPeerQuery struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

LocalPeerQuery queries for peers in a non channel context

func (*LocalPeerQuery) Descriptor Uses

func (*LocalPeerQuery) Descriptor() ([]byte, []int)

func (*LocalPeerQuery) ProtoMessage Uses

func (*LocalPeerQuery) ProtoMessage()

func (*LocalPeerQuery) Reset Uses

func (m *LocalPeerQuery) Reset()

func (*LocalPeerQuery) String Uses

func (m *LocalPeerQuery) String() string

func (*LocalPeerQuery) XXX_DiscardUnknown Uses

func (m *LocalPeerQuery) XXX_DiscardUnknown()

func (*LocalPeerQuery) XXX_Marshal Uses

func (m *LocalPeerQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalPeerQuery) XXX_Merge Uses

func (dst *LocalPeerQuery) XXX_Merge(src proto.Message)

func (*LocalPeerQuery) XXX_Size Uses

func (m *LocalPeerQuery) XXX_Size() int

func (*LocalPeerQuery) XXX_Unmarshal Uses

func (m *LocalPeerQuery) XXX_Unmarshal(b []byte) error

type Peer Uses

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:"-"`
}

Peer contains information about the peer such as its channel specific state, and membership information.

func (*Peer) Descriptor Uses

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetIdentity Uses

func (m *Peer) GetIdentity() []byte

func (*Peer) GetMembershipInfo Uses

func (m *Peer) GetMembershipInfo() *gossip.Envelope

func (*Peer) GetStateInfo Uses

func (m *Peer) GetStateInfo() *gossip.Envelope

func (*Peer) ProtoMessage Uses

func (*Peer) ProtoMessage()

func (*Peer) Reset Uses

func (m *Peer) Reset()

func (*Peer) String Uses

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown Uses

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal Uses

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge Uses

func (dst *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size Uses

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal Uses

func (m *Peer) XXX_Unmarshal(b []byte) error

type PeerMembershipQuery Uses

type PeerMembershipQuery struct {
    Filter               *ChaincodeInterest `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

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.

func (*PeerMembershipQuery) Descriptor Uses

func (*PeerMembershipQuery) Descriptor() ([]byte, []int)

func (*PeerMembershipQuery) GetFilter Uses

func (m *PeerMembershipQuery) GetFilter() *ChaincodeInterest

func (*PeerMembershipQuery) ProtoMessage Uses

func (*PeerMembershipQuery) ProtoMessage()

func (*PeerMembershipQuery) Reset Uses

func (m *PeerMembershipQuery) Reset()

func (*PeerMembershipQuery) String Uses

func (m *PeerMembershipQuery) String() string

func (*PeerMembershipQuery) XXX_DiscardUnknown Uses

func (m *PeerMembershipQuery) XXX_DiscardUnknown()

func (*PeerMembershipQuery) XXX_Marshal Uses

func (m *PeerMembershipQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerMembershipQuery) XXX_Merge Uses

func (dst *PeerMembershipQuery) XXX_Merge(src proto.Message)

func (*PeerMembershipQuery) XXX_Size Uses

func (m *PeerMembershipQuery) XXX_Size() int

func (*PeerMembershipQuery) XXX_Unmarshal Uses

func (m *PeerMembershipQuery) XXX_Unmarshal(b []byte) error

type PeerMembershipResult Uses

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:"-"`
}

PeerMembershipResult contains peers mapped by their organizations (MSP_ID)

func (*PeerMembershipResult) Descriptor Uses

func (*PeerMembershipResult) Descriptor() ([]byte, []int)

func (*PeerMembershipResult) GetPeersByOrg Uses

func (m *PeerMembershipResult) GetPeersByOrg() map[string]*Peers

func (*PeerMembershipResult) ProtoMessage Uses

func (*PeerMembershipResult) ProtoMessage()

func (*PeerMembershipResult) Reset Uses

func (m *PeerMembershipResult) Reset()

func (*PeerMembershipResult) String Uses

func (m *PeerMembershipResult) String() string

func (*PeerMembershipResult) XXX_DiscardUnknown Uses

func (m *PeerMembershipResult) XXX_DiscardUnknown()

func (*PeerMembershipResult) XXX_Marshal Uses

func (m *PeerMembershipResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerMembershipResult) XXX_Merge Uses

func (dst *PeerMembershipResult) XXX_Merge(src proto.Message)

func (*PeerMembershipResult) XXX_Size Uses

func (m *PeerMembershipResult) XXX_Size() int

func (*PeerMembershipResult) XXX_Unmarshal Uses

func (m *PeerMembershipResult) XXX_Unmarshal(b []byte) error

type Peers Uses

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:"-"`
}

Peers contains a list of Peer(s)

func (*Peers) Descriptor Uses

func (*Peers) Descriptor() ([]byte, []int)

func (*Peers) GetPeers Uses

func (m *Peers) GetPeers() []*Peer

func (*Peers) ProtoMessage Uses

func (*Peers) ProtoMessage()

func (*Peers) Reset Uses

func (m *Peers) Reset()

func (*Peers) String Uses

func (m *Peers) String() string

func (*Peers) XXX_DiscardUnknown Uses

func (m *Peers) XXX_DiscardUnknown()

func (*Peers) XXX_Marshal Uses

func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peers) XXX_Merge Uses

func (dst *Peers) XXX_Merge(src proto.Message)

func (*Peers) XXX_Size Uses

func (m *Peers) XXX_Size() int

func (*Peers) XXX_Unmarshal Uses

func (m *Peers) XXX_Unmarshal(b []byte) error

type Query Uses

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:"-"`
}

Query asks for information in the context of a specific channel

func (*Query) Descriptor Uses

func (*Query) Descriptor() ([]byte, []int)

func (*Query) GetCcQuery Uses

func (m *Query) GetCcQuery() *ChaincodeQuery

func (*Query) GetChannel Uses

func (m *Query) GetChannel() string

func (*Query) GetConfigQuery Uses

func (m *Query) GetConfigQuery() *ConfigQuery

func (*Query) GetLocalPeers Uses

func (m *Query) GetLocalPeers() *LocalPeerQuery

func (*Query) GetPeerQuery Uses

func (m *Query) GetPeerQuery() *PeerMembershipQuery

func (*Query) GetQuery Uses

func (m *Query) GetQuery() isQuery_Query

func (*Query) GetType Uses

func (q *Query) GetType() QueryType

GetType returns the type of the request

func (*Query) ProtoMessage Uses

func (*Query) ProtoMessage()

func (*Query) Reset Uses

func (m *Query) Reset()

func (*Query) String Uses

func (m *Query) String() string

func (*Query) XXX_DiscardUnknown Uses

func (m *Query) XXX_DiscardUnknown()

func (*Query) XXX_Marshal Uses

func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Query) XXX_Merge Uses

func (dst *Query) XXX_Merge(src proto.Message)

func (*Query) XXX_OneofFuncs Uses

func (*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{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Query) XXX_Size Uses

func (m *Query) XXX_Size() int

func (*Query) XXX_Unmarshal Uses

func (m *Query) XXX_Unmarshal(b []byte) error

type QueryResult Uses

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:"-"`
}

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.

func (*QueryResult) Descriptor Uses

func (*QueryResult) Descriptor() ([]byte, []int)

func (*QueryResult) GetCcQueryRes Uses

func (m *QueryResult) GetCcQueryRes() *ChaincodeQueryResult

func (*QueryResult) GetConfigResult Uses

func (m *QueryResult) GetConfigResult() *ConfigResult

func (*QueryResult) GetError Uses

func (m *QueryResult) GetError() *Error

func (*QueryResult) GetMembers Uses

func (m *QueryResult) GetMembers() *PeerMembershipResult

func (*QueryResult) GetResult Uses

func (m *QueryResult) GetResult() isQueryResult_Result

func (*QueryResult) ProtoMessage Uses

func (*QueryResult) ProtoMessage()

func (*QueryResult) Reset Uses

func (m *QueryResult) Reset()

func (*QueryResult) String Uses

func (m *QueryResult) String() string

func (*QueryResult) XXX_DiscardUnknown Uses

func (m *QueryResult) XXX_DiscardUnknown()

func (*QueryResult) XXX_Marshal Uses

func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryResult) XXX_Merge Uses

func (dst *QueryResult) XXX_Merge(src proto.Message)

func (*QueryResult) XXX_OneofFuncs Uses

func (*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{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*QueryResult) XXX_Size Uses

func (m *QueryResult) XXX_Size() int

func (*QueryResult) XXX_Unmarshal Uses

func (m *QueryResult) XXX_Unmarshal(b []byte) error

type QueryResult_CcQueryRes Uses

type QueryResult_CcQueryRes struct {
    CcQueryRes *ChaincodeQueryResult `protobuf:"bytes,3,opt,name=cc_query_res,json=ccQueryRes,proto3,oneof"`
}

type QueryResult_ConfigResult Uses

type QueryResult_ConfigResult struct {
    ConfigResult *ConfigResult `protobuf:"bytes,2,opt,name=config_result,json=configResult,proto3,oneof"`
}

type QueryResult_Error Uses

type QueryResult_Error struct {
    Error *Error `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type QueryResult_Members Uses

type QueryResult_Members struct {
    Members *PeerMembershipResult `protobuf:"bytes,4,opt,name=members,proto3,oneof"`
}

type QueryType Uses

type QueryType uint8

QueryType defines the types of service discovery requests

const (
    InvalidQueryType QueryType = iota
    ConfigQueryType
    PeerMembershipQueryType
    ChaincodeQueryType
    LocalMembershipQueryType
)

type Query_CcQuery Uses

type Query_CcQuery struct {
    CcQuery *ChaincodeQuery `protobuf:"bytes,4,opt,name=cc_query,json=ccQuery,proto3,oneof"`
}

type Query_ConfigQuery Uses

type Query_ConfigQuery struct {
    ConfigQuery *ConfigQuery `protobuf:"bytes,2,opt,name=config_query,json=configQuery,proto3,oneof"`
}

type Query_LocalPeers Uses

type Query_LocalPeers struct {
    LocalPeers *LocalPeerQuery `protobuf:"bytes,5,opt,name=local_peers,json=localPeers,proto3,oneof"`
}

type Query_PeerQuery Uses

type Query_PeerQuery struct {
    PeerQuery *PeerMembershipQuery `protobuf:"bytes,3,opt,name=peer_query,json=peerQuery,proto3,oneof"`
}

type Request Uses

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:"-"`
}

Request contains authentication info about the client that sent the request and the queries it wishes to query the service

func (*Request) Descriptor Uses

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetAuthentication Uses

func (m *Request) GetAuthentication() *AuthInfo

func (*Request) GetQueries Uses

func (m *Request) GetQueries() []*Query

func (*Request) ProtoMessage Uses

func (*Request) ProtoMessage()

func (*Request) Reset Uses

func (m *Request) Reset()

func (*Request) String Uses

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown Uses

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal Uses

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge Uses

func (dst *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size Uses

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal Uses

func (m *Request) XXX_Unmarshal(b []byte) error

type Response Uses

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 (*Response) ConfigAt Uses

func (m *Response) ConfigAt(i int) (*ConfigResult, *Error)

ConfigAt returns the ConfigResult at a given index in the Response, or an Error if present.

func (*Response) Descriptor Uses

func (*Response) Descriptor() ([]byte, []int)

func (*Response) EndorsersAt Uses

func (m *Response) EndorsersAt(i int) (*ChaincodeQueryResult, *Error)

EndorsersAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.

func (*Response) GetResults Uses

func (m *Response) GetResults() []*QueryResult

func (*Response) MembershipAt Uses

func (m *Response) MembershipAt(i int) (*PeerMembershipResult, *Error)

MembershipAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.

func (*Response) ProtoMessage Uses

func (*Response) ProtoMessage()

func (*Response) Reset Uses

func (m *Response) Reset()

func (*Response) String Uses

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown Uses

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal Uses

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge Uses

func (dst *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size Uses

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal Uses

func (m *Response) XXX_Unmarshal(b []byte) error

type SignedRequest Uses

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:"-"`
}

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.

func (*SignedRequest) Descriptor Uses

func (*SignedRequest) Descriptor() ([]byte, []int)

func (*SignedRequest) GetPayload Uses

func (m *SignedRequest) GetPayload() []byte

func (*SignedRequest) GetSignature Uses

func (m *SignedRequest) GetSignature() []byte

func (*SignedRequest) ProtoMessage Uses

func (*SignedRequest) ProtoMessage()

func (*SignedRequest) Reset Uses

func (m *SignedRequest) Reset()

func (*SignedRequest) String Uses

func (m *SignedRequest) String() string

func (*SignedRequest) ToRequest Uses

func (sr *SignedRequest) ToRequest() (*Request, error)

ToRequest deserializes this SignedRequest's payload and returns the serialized Request in its object form. Returns an error in case the operation fails.

func (*SignedRequest) XXX_DiscardUnknown Uses

func (m *SignedRequest) XXX_DiscardUnknown()

func (*SignedRequest) XXX_Marshal Uses

func (m *SignedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedRequest) XXX_Merge Uses

func (dst *SignedRequest) XXX_Merge(src proto.Message)

func (*SignedRequest) XXX_Size Uses

func (m *SignedRequest) XXX_Size() int

func (*SignedRequest) XXX_Unmarshal Uses

func (m *SignedRequest) XXX_Unmarshal(b []byte) error

Package discovery imports 7 packages (graph) and is imported by 7 packages. Updated 2018-12-11. Refresh now. Tools for package owners.