Documentation ¶
Index ¶
- type Connection
- type Middleware
- func (_m *Middleware) Ping(targetID flow.Identifier) (time.Duration, error)
- func (_m *Middleware) Publish(msg *message.Message, channelID string) error
- func (_m *Middleware) Send(channelID string, msg *message.Message, targetIDs ...flow.Identifier) error
- func (_m *Middleware) SendDirect(msg *message.Message, targetID flow.Identifier) error
- func (_m *Middleware) Start(overlay middleware.Overlay) error
- func (_m *Middleware) Stop()
- func (_m *Middleware) Subscribe(channelID string) error
- func (_m *Middleware) Unsubscribe(channelID string) error
- func (_m *Middleware) UpdateAllowList() error
- type Overlay
- type Topology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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) Publish ¶
func (_m *Middleware) Publish(msg *message.Message, channelID string) error
Publish provides a mock function with given fields: msg, channelID
func (*Middleware) Send ¶
func (_m *Middleware) Send(channelID string, msg *message.Message, targetIDs ...flow.Identifier) error
Send provides a mock function with given fields: channelID, 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 middleware.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(channelID string) error
Subscribe provides a mock function with given fields: channelID
func (*Middleware) Unsubscribe ¶
func (_m *Middleware) Unsubscribe(channelID string) error
Unsubscribe provides a mock function with given fields: channelID
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