peerDiscovery

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMessenger added in v1.0.3

func CreateMessenger(ctx context.Context,
	seed int,
	peerDiscoverer p2p.PeerDiscoverer) p2p.Messenger

func RunTest

func RunTest(peers []p2p.Messenger, testIndex int, topic string) bool

Types

type MessageProcesssor

type MessageProcesssor struct {
	RequiredValue []byte
	// contains filtered or unexported fields
}

func NewMessageProcessor

func NewMessageProcessor(chanDone chan struct{}, requiredVal []byte) *MessageProcesssor

func (*MessageProcesssor) ProcessReceivedMessage

func (mp *MessageProcesssor) ProcessReceivedMessage(message p2p.MessageP2P) error

func (*MessageProcesssor) WasDataReceived

func (mp *MessageProcesssor) WasDataReceived() bool

Jump to

Keyboard shortcuts

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