Documentation ¶
Index ¶
- type Codec
- type Conduit
- func (_m *Conduit) Close() error
- func (_m *Conduit) Multicast(event interface{}, num uint, targetIDs ...flow.Identifier) error
- func (_m *Conduit) Publish(event interface{}, targetIDs ...flow.Identifier) error
- func (_m *Conduit) Submit(event interface{}, targetIDs ...flow.Identifier) error
- func (_m *Conduit) Unicast(event interface{}, targetID flow.Identifier) error
- type Connection
- type Connector
- type Decoder
- type Encoder
- type Engine
- type MessageQueue
- type MessageValidator
- type Middleware
- func (_m *Middleware) Ping(targetID flow.Identifier) (time.Duration, error)
- func (_m *Middleware) Publish(msg *message.Message, channel network.Channel) error
- func (_m *Middleware) Send(channel network.Channel, msg *message.Message, targetIDs ...flow.Identifier) error
- func (_m *Middleware) SendDirect(msg *message.Message, targetID flow.Identifier) error
- func (_m *Middleware) Start(overlay network.Overlay) error
- func (_m *Middleware) Stop()
- func (_m *Middleware) Subscribe(channel network.Channel) error
- func (_m *Middleware) Unsubscribe(channel network.Channel) error
- func (_m *Middleware) UpdateAllowList() error
- type Overlay
- type SubscriptionManager
- func (_m *SubscriptionManager) Channels() network.ChannelList
- func (_m *SubscriptionManager) GetEngine(channel network.Channel) (network.Engine, error)
- func (_m *SubscriptionManager) Register(channel network.Channel, engine network.Engine) error
- func (_m *SubscriptionManager) Unregister(channel network.Channel) error
- type Topology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
Codec is an autogenerated mock type for the Codec type
func (*Codec) NewDecoder ¶
NewDecoder provides a mock function with given fields: r
type Conduit ¶
Conduit is an autogenerated mock type for the Conduit type
func (*Conduit) Multicast ¶
func (_m *Conduit) Multicast(event interface{}, num uint, targetIDs ...flow.Identifier) error
Multicast provides a mock function with given fields: event, num, targetIDs
func (*Conduit) Publish ¶
func (_m *Conduit) Publish(event interface{}, targetIDs ...flow.Identifier) error
Publish provides a mock function with given fields: event, targetIDs
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func (*Connection) Receive ¶
func (_m *Connection) Receive() (interface{}, error)
Receive provides a mock function with given fields:
func (*Connection) Send ¶
func (_m *Connection) Send(msg interface{}) error
Send provides a mock function with given fields: msg
type Connector ¶
Connector is an autogenerated mock type for the Connector type
func (*Connector) UpdatePeers ¶ added in v0.14.0
UpdatePeers provides a mock function with given fields: ctx, ids
type Engine ¶
Engine is an autogenerated mock type for the Engine type
func (*Engine) Process ¶
func (_m *Engine) Process(originID flow.Identifier, event interface{}) error
Process provides a mock function with given fields: originID, event
func (*Engine) ProcessLocal ¶
ProcessLocal provides a mock function with given fields: event
func (*Engine) Submit ¶
func (_m *Engine) Submit(originID flow.Identifier, event interface{})
Submit provides a mock function with given fields: originID, event
func (*Engine) SubmitLocal ¶
func (_m *Engine) SubmitLocal(event interface{})
SubmitLocal provides a mock function with given fields: event
type MessageQueue ¶
MessageQueue is an autogenerated mock type for the MessageQueue type
func (*MessageQueue) Insert ¶
func (_m *MessageQueue) Insert(message interface{}) error
Insert provides a mock function with given fields: message
func (*MessageQueue) Len ¶
func (_m *MessageQueue) Len() int
Len provides a mock function with given fields:
func (*MessageQueue) Remove ¶
func (_m *MessageQueue) Remove() interface{}
Remove provides a mock function with given fields:
type MessageValidator ¶
MessageValidator is an autogenerated mock type for the MessageValidator type
type Middleware ¶
Middleware is an autogenerated mock type for the Middleware type
func (*Middleware) Ping ¶
func (_m *Middleware) Ping(targetID flow.Identifier) (time.Duration, error)
Ping provides a mock function with given fields: targetID
func (*Middleware) Send ¶
func (_m *Middleware) Send(channel network.Channel, msg *message.Message, targetIDs ...flow.Identifier) error
Send provides a mock function with given fields: channel, msg, targetIDs
func (*Middleware) SendDirect ¶
func (_m *Middleware) SendDirect(msg *message.Message, targetID flow.Identifier) error
SendDirect provides a mock function with given fields: msg, targetID
func (*Middleware) Start ¶
func (_m *Middleware) Start(overlay network.Overlay) error
Start provides a mock function with given fields: overlay
func (*Middleware) Stop ¶
func (_m *Middleware) Stop()
Stop provides a mock function with given fields:
func (*Middleware) Subscribe ¶
func (_m *Middleware) Subscribe(channel network.Channel) error
Subscribe provides a mock function with given fields: channel
func (*Middleware) Unsubscribe ¶
func (_m *Middleware) Unsubscribe(channel network.Channel) error
Unsubscribe provides a mock function with given fields: channel
func (*Middleware) UpdateAllowList ¶
func (_m *Middleware) UpdateAllowList() error
UpdateAllowList provides a mock function with given fields:
type Overlay ¶
Overlay is an autogenerated mock type for the Overlay type
type SubscriptionManager ¶
SubscriptionManager is an autogenerated mock type for the SubscriptionManager type
func (*SubscriptionManager) Channels ¶ added in v0.14.0
func (_m *SubscriptionManager) Channels() network.ChannelList
Channels provides a mock function with given fields:
func (*SubscriptionManager) GetEngine ¶
GetEngine provides a mock function with given fields: channel
func (*SubscriptionManager) Register ¶
Register provides a mock function with given fields: channel, engine
func (*SubscriptionManager) Unregister ¶
func (_m *SubscriptionManager) Unregister(channel network.Channel) error
Unregister provides a mock function with given fields: channel
type Topology ¶
Topology is an autogenerated mock type for the Topology type
func (*Topology) GenerateFanout ¶
func (_m *Topology) GenerateFanout(ids flow.IdentityList, channels network.ChannelList) (flow.IdentityList, error)
GenerateFanout provides a mock function with given fields: ids, channels