Documentation ¶
Index ¶
- type GossipMock
- func (g *GossipMock) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan proto.ReceivedMessage)
- func (*GossipMock) Gossip(msg *proto.GossipMessage)
- func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, chainID common.ChainID)
- func (*GossipMock) Peers() []discovery.NetworkMember
- func (*GossipMock) PeersOfChannel(common.ChainID) []discovery.NetworkMember
- func (*GossipMock) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)
- func (*GossipMock) Stop()
- func (*GossipMock) SuspectPeers(s api.PeerSuspector)
- func (*GossipMock) UpdateChannelMetadata(metadata []byte, chainID common.ChainID)
- func (*GossipMock) UpdateMetadata(metadata []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GossipMock ¶
func (*GossipMock) Accept ¶
func (g *GossipMock) Accept(acceptor common.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan proto.ReceivedMessage)
func (*GossipMock) Gossip ¶
func (*GossipMock) Gossip(msg *proto.GossipMessage)
func (*GossipMock) JoinChan ¶
func (g *GossipMock) JoinChan(joinMsg api.JoinChannelMessage, chainID common.ChainID)
func (*GossipMock) Peers ¶
func (*GossipMock) Peers() []discovery.NetworkMember
func (*GossipMock) PeersOfChannel ¶
func (*GossipMock) PeersOfChannel(common.ChainID) []discovery.NetworkMember
func (*GossipMock) Send ¶
func (*GossipMock) Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer)
func (*GossipMock) Stop ¶
func (*GossipMock) Stop()
func (*GossipMock) SuspectPeers ¶
func (*GossipMock) SuspectPeers(s api.PeerSuspector)
func (*GossipMock) UpdateChannelMetadata ¶ added in v1.0.0
func (*GossipMock) UpdateChannelMetadata(metadata []byte, chainID common.ChainID)
func (*GossipMock) UpdateMetadata ¶
func (*GossipMock) UpdateMetadata(metadata []byte)
Click to show internal directories.
Click to hide internal directories.