communication

package
Version: v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralMessageEventHandler

type GeneralMessageEventHandler interface {
	Handle(msgEvent *message.GeneralMessageEvent)
}

type GeneralMessageHandlerPlugin

type GeneralMessageHandlerPlugin interface {
	SupportedMessageTypes() []message.GeneralMessageType
	SupportedEventHandlers() []eventbus.EventHandlerRegisterInfo
	GetMessageEventHandler() GeneralMessageEventHandler
	SetOutgoing(GeneralPeerCommunicatorOutgoing)
	Start()
	Stop()
}

type GeneralPeerCommunicatorIncoming

type GeneralPeerCommunicatorIncoming interface {
	GetPipeIn() chan *message.GeneralMessageEvent
	GetPipeOut() chan *message.GeneralMessageEvent
}

type GeneralPeerCommunicatorOutgoing

type GeneralPeerCommunicatorOutgoing interface {
	Broadcast(msg message.GeneralMessage)
	Multicast(msg message.GeneralMessage, peers []message.GeneralPeer)
	Unicast(msg message.GeneralMessage, peer message.GeneralPeer)
}

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