gossip

package
v0.0.0-...-9f00f78 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestRouter

type TestRouter struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTestRouter

func NewTestRouter(loss float32) *TestRouter

func (*TestRouter) Connect

func (grouter *TestRouter) Connect(sender mesh.PeerName, gossiper mesh.Gossiper) mesh.Gossip

func (*TestRouter) Flush

func (grouter *TestRouter) Flush()

func (*TestRouter) RemovePeer

func (grouter *TestRouter) RemovePeer(peer mesh.PeerName)

func (*TestRouter) Stop

func (grouter *TestRouter) Stop()

type TestRouterClient

type TestRouterClient struct {
	// contains filtered or unexported fields
}

func (TestRouterClient) GossipBroadcast

func (client TestRouterClient) GossipBroadcast(update mesh.GossipData)

func (TestRouterClient) GossipNeighbourSubset

func (client TestRouterClient) GossipNeighbourSubset(update mesh.GossipData)

func (TestRouterClient) GossipUnicast

func (client TestRouterClient) GossipUnicast(dstPeerName mesh.PeerName, buf []byte) error

Jump to

Keyboard shortcuts

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