Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { LocalPeer *memserviceapi.PeerEndpoint Peers []*memserviceapi.PeerEndpoint PeersOfChannel map[string][]*memserviceapi.PeerEndpoint Error error }
Service is a mock membership service
func (*Service) GetAllPeers ¶
func (s *Service) GetAllPeers() []*memserviceapi.PeerEndpoint
GetAllPeers returns all peers on the gossip network
func (*Service) GetLocalPeer ¶ added in v0.4.3
func (s *Service) GetLocalPeer(channelID string) (*memserviceapi.PeerEndpoint, error)
GetLocalPeer return the local peer for the channel
func (*Service) GetPeersOfChannel ¶
func (s *Service) GetPeersOfChannel(channelID string) ([]*memserviceapi.PeerEndpoint, error)
GetPeersOfChannel returns all peers on the gossip network joined to the given channel
Click to show internal directories.
Click to hide internal directories.