dep

package
v0.0.9-Bytes Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalGeneralPeerCommunicator

type LocalGeneralPeerCommunicator struct {
	Myid    int
	PeerIns []chan *message.GeneralMessageEvent
	// contains filtered or unexported fields
}

LocalGeneralPeerCommunicator is the place for change GeneralMessage locally.

func NewLocalGeneralPeerCommunicator

func NewLocalGeneralPeerCommunicator(myid int, incoming chan *message.GeneralMessageEvent, peers []chan *message.GeneralMessageEvent) *LocalGeneralPeerCommunicator

func (*LocalGeneralPeerCommunicator) Broadcast

func (*LocalGeneralPeerCommunicator) GetPipeIn

func (*LocalGeneralPeerCommunicator) GetPipeOut

func (*LocalGeneralPeerCommunicator) HandleIncomingMessage

func (d *LocalGeneralPeerCommunicator) HandleIncomingMessage(msgEvent *message.GeneralMessageEvent)

func (*LocalGeneralPeerCommunicator) Multicast

func (*LocalGeneralPeerCommunicator) Unicast

Jump to

Keyboard shortcuts

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