Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conduit ¶
type Conduit struct { mocknetwork.Conduit // contains filtered or unexported fields }
Conduit represents a mock conduit.
type Engine ¶
type Engine struct {
mockmodule.Engine
}
Engine represents a mock engine. The implementation is not concurrency-safe.
func (*Engine) OnProcess ¶
func (e *Engine) OnProcess(processFunc EngineProcessFunc) *Engine
OnProcess specifies the callback that should be executed when `Process` is called on this mock engine.
type EngineProcessFunc ¶
type EngineProcessFunc func(network.Channel, flow.Identifier, interface{}) error
type Network ¶
type Network struct { mockmodule.ReadyDoneAwareNetwork // contains filtered or unexported fields }
Network represents a mock network. The implementation is not concurrency-safe.
func (*Network) OnPublish ¶
func (n *Network) OnPublish(publishFunc NetworkPublishFunc) *Network
OnPublish specifies the callback that should be executed when `Publish` is called on any conduits created by this mock network.
type NetworkPublishFunc ¶
type NetworkPublishFunc func(network.Channel, interface{}, ...flow.Identifier) error
Click to show internal directories.
Click to hide internal directories.