test

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.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 MailBoxPlugin

type MailBoxPlugin struct {
	*network.Plugin
	RecvMailbox chan *protobuf.TestMessage
	SendMailbox chan *protobuf.TestMessage
}

MailBoxPlugin buffers all messages into a mailbox for test validation.

func (*MailBoxPlugin) Receive

func (state *MailBoxPlugin) Receive(ctx *network.PluginContext) error

Receive puts a received message into the RecvMailbox channel

func (*MailBoxPlugin) Send

func (state *MailBoxPlugin) Send(ctx *network.PluginContext) error

Send puts a sent message into the SendMailbox channel

func (*MailBoxPlugin) Startup

func (state *MailBoxPlugin) Startup(net *network.Network)

Startup creates a mailbox channel

Directories

Path Synopsis
Package protobuf is a generated protocol buffer package.
Package protobuf is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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