mockmembership

package
v0.4.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL