mock

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

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

type Connector struct {
	mock.Mock
}

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

type Middleware struct {
	mock.Mock
}

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

type Overlay struct {
	mock.Mock
}

Overlay is an autogenerated mock type for the Overlay type

func (*Overlay) Identity

func (_m *Overlay) Identity() (map[flow.Identifier]flow.Identity, error)

Identity provides a mock function with given fields:

func (*Overlay) Receive

func (_m *Overlay) Receive(nodeID flow.Identifier, msg *message.Message) error

Receive provides a mock function with given fields: nodeID, msg

func (*Overlay) Topology

func (_m *Overlay) Topology() (flow.IdentityList, error)

Topology provides a mock function with given fields:

type SubscriptionManager added in v0.12.0

type SubscriptionManager struct {
	mock.Mock
}

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

type Topology

type Topology struct {
	mock.Mock
}

Topology is an autogenerated mock type for the Topology type

func (*Topology) Subset

func (_m *Topology) Subset(idList flow.IdentityList, size int, seed string) (map[flow.Identifier]flow.Identity, error)

Subset provides a mock function with given fields: idList, size, seed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL