Documentation ¶
Index ¶
- type Connection
- type Connector
- 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 SubscriptionManager
- 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 Connector ¶ added in v0.11.0
Connector is an autogenerated mock type for the Connector type
func (*Connector) ConnectPeers ¶ added in v0.11.0
func (_m *Connector) ConnectPeers(ctx context.Context, ids flow.IdentityList) map[flow.Identifier]error
ConnectPeers provides a mock function with given fields: ctx, ids
func (*Connector) DisconnectPeers ¶ added in v0.11.0
func (_m *Connector) DisconnectPeers(ctx context.Context, ids flow.IdentityList) map[flow.Identifier]error
DisconnectPeers provides a mock function with given fields: ctx, ids
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
type SubscriptionManager ¶ added in v0.12.0
SubscriptionManager is an autogenerated mock type for the SubscriptionManager type
func (*SubscriptionManager) GetChannelIDs ¶ added in v0.12.0
func (_m *SubscriptionManager) GetChannelIDs() []string
GetChannelIDs provides a mock function with given fields:
func (*SubscriptionManager) GetEngine ¶ added in v0.12.0
func (_m *SubscriptionManager) GetEngine(channelID string) (network.Engine, error)
GetEngine provides a mock function with given fields: channelID
func (*SubscriptionManager) Register ¶ added in v0.12.0
func (_m *SubscriptionManager) Register(channelID string, engine network.Engine) error
Register provides a mock function with given fields: channelID, engine
func (*SubscriptionManager) Unregister ¶ added in v0.12.0
func (_m *SubscriptionManager) Unregister(channelID string) error
Unregister provides a mock function with given fields: channelID