gossip

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2015 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 router.PeerName, gossiper router.Gossiper) router.Gossip

func (*TestRouter) Flush

func (grouter *TestRouter) Flush()

func (*TestRouter) RemovePeer

func (grouter *TestRouter) RemovePeer(peer router.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 router.GossipData) error

func (TestRouterClient) GossipUnicast

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

Jump to

Keyboard shortcuts

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