test

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT 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