gossip

package
Version: v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 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) GossipUnicast

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL