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 ¶
- type PeerEndpoint
- func (*PeerEndpoint) Descriptor() ([]byte, []int)
- func (m *PeerEndpoint) GetEndpoint() string
- func (m *PeerEndpoint) GetLedgerHeight() uint64
- func (m *PeerEndpoint) GetLeftChannel() bool
- func (m *PeerEndpoint) GetMSPid() []byte
- func (m *PeerEndpoint) GetRoles() []string
- func (*PeerEndpoint) ProtoMessage()
- func (m *PeerEndpoint) Reset()
- func (m *PeerEndpoint) String() string
- type PeerEndpoints
- type Service
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"` Roles []string `protobuf:"bytes,5,rep,name=roles" json:"roles,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) GetLedgerHeight ¶ added in v0.4.3
func (m *PeerEndpoint) GetLedgerHeight() uint64
func (*PeerEndpoint) GetLeftChannel ¶ added in v0.4.3
func (m *PeerEndpoint) GetLeftChannel() bool
func (*PeerEndpoint) GetMSPid ¶
func (m *PeerEndpoint) GetMSPid() []byte
func (*PeerEndpoint) GetRoles ¶ added in v0.4.3
func (m *PeerEndpoint) GetRoles() []string
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 { // GetLocalPeer returns the local peer for the given channel GetLocalPeer(channelID string) (*PeerEndpoint, error) // 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.