Documentation ¶
Overview ¶
Package membership is a generated protocol buffer package.
It is generated from these files:
peers.proto
It has these top-level messages:
PeerEndpoint PeerEndpoints
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerEndpoint ¶
type PeerEndpoint struct { Endpoint string `protobuf:"bytes,1,opt,name=Endpoint" json:"Endpoint,omitempty"` MSPid []byte `protobuf:"bytes,2,opt,name=MSPid,proto3" json:"MSPid,omitempty"` LedgerHeight uint64 `protobuf:"varint,3,opt,name=ledger_height,json=ledgerHeight" json:"ledger_height,omitempty"` LeftChannel bool `protobuf:"varint,4,opt,name=left_channel,json=leftChannel" json:"left_channel,omitempty"` }
PeerEndpoint contains the preferred endpoint of a peer
func (*PeerEndpoint) Descriptor ¶
func (*PeerEndpoint) Descriptor() ([]byte, []int)
func (*PeerEndpoint) GetEndpoint ¶
func (m *PeerEndpoint) GetEndpoint() string
func (*PeerEndpoint) GetMSPid ¶
func (m *PeerEndpoint) GetMSPid() []byte
func (*PeerEndpoint) ProtoMessage ¶
func (*PeerEndpoint) ProtoMessage()
func (*PeerEndpoint) Reset ¶
func (m *PeerEndpoint) Reset()
func (*PeerEndpoint) String ¶
func (m *PeerEndpoint) String() string
type PeerEndpoints ¶
type PeerEndpoints struct {
Endpoints []*PeerEndpoint `protobuf:"bytes,1,rep,name=Endpoints" json:"Endpoints,omitempty"`
}
PeerEndpoints contains a list of peer endpoints
func (*PeerEndpoints) Descriptor ¶
func (*PeerEndpoints) Descriptor() ([]byte, []int)
func (*PeerEndpoints) GetEndpoints ¶
func (m *PeerEndpoints) GetEndpoints() []*PeerEndpoint
func (*PeerEndpoints) ProtoMessage ¶
func (*PeerEndpoints) ProtoMessage()
func (*PeerEndpoints) Reset ¶
func (m *PeerEndpoints) Reset()
func (*PeerEndpoints) String ¶
func (m *PeerEndpoints) String() string
type Service ¶
type Service interface { // GetAllPeers returns all peers in the Gossip network GetAllPeers() []*PeerEndpoint // GetPeersOfChannel returns all peers on the Gossip network that are joined to the given channel GetPeersOfChannel(channelID string) ([]*PeerEndpoint, error) }
Service provides functions to query peers
Click to show internal directories.
Click to hide internal directories.