gossip

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: Apache-2.0 Imports: 6 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 {
	// 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) error

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