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
Click to show internal directories.
Click to hide internal directories.