mocks

package
v0.6.1-0...-c79f37a Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatapultClient

type CatapultClient struct {
	mock.Mock
}

CatapultClient is an autogenerated mock type for the CatapultClient type

func (*CatapultClient) AddBlockHandlers

func (_m *CatapultClient) AddBlockHandlers(handlers ...subscribers.BlockHandler) error

AddBlockHandlers provides a mock function with given fields: handlers

func (*CatapultClient) AddConfirmedAddedHandlers

func (_m *CatapultClient) AddConfirmedAddedHandlers(address *sdk.Address, handlers ...subscribers.ConfirmedAddedHandler) error

AddConfirmedAddedHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddCosignatureHandlers

func (_m *CatapultClient) AddCosignatureHandlers(address *sdk.Address, handlers ...subscribers.CosignatureHandler) error

AddCosignatureHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddDriveStateHandlers

func (_m *CatapultClient) AddDriveStateHandlers(address *sdk.Address, handlers ...subscribers.DriveStateHandler) error

AddDriveStateHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddPartialAddedHandlers

func (_m *CatapultClient) AddPartialAddedHandlers(address *sdk.Address, handlers ...subscribers.PartialAddedHandler) error

AddPartialAddedHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddPartialRemovedHandlers

func (_m *CatapultClient) AddPartialRemovedHandlers(address *sdk.Address, handlers ...subscribers.PartialRemovedHandler) error

AddPartialRemovedHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddStatusHandlers

func (_m *CatapultClient) AddStatusHandlers(address *sdk.Address, handlers ...subscribers.StatusHandler) error

AddStatusHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddUnconfirmedAddedHandlers

func (_m *CatapultClient) AddUnconfirmedAddedHandlers(address *sdk.Address, handlers ...subscribers.UnconfirmedAddedHandler) error

AddUnconfirmedAddedHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) AddUnconfirmedRemovedHandlers

func (_m *CatapultClient) AddUnconfirmedRemovedHandlers(address *sdk.Address, handlers ...subscribers.UnconfirmedRemovedHandler) error

AddUnconfirmedRemovedHandlers provides a mock function with given fields: address, handlers

func (*CatapultClient) Close

func (_m *CatapultClient) Close() error

Close provides a mock function with given fields:

func (*CatapultClient) Listen

func (_m *CatapultClient) Listen()

Listen provides a mock function with given fields:

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) Listen

func (_m *Client) Listen()

Listen provides a mock function with given fields:

type MessageInfoMapper

type MessageInfoMapper struct {
	mock.Mock
}

MessageInfoMapper is an autogenerated mock type for the MessageInfoMapper type

func (*MessageInfoMapper) MapMessageInfo

func (_m *MessageInfoMapper) MapMessageInfo(_a0 []byte) (*sdk.WsMessageInfo, error)

MapMessageInfo provides a mock function with given fields: _a0

type MessagePublisher

type MessagePublisher struct {
	mock.Mock
}

MessagePublisher is an autogenerated mock type for the MessagePublisher type

func (*MessagePublisher) PublishSubscribeMessage

func (_m *MessagePublisher) PublishSubscribeMessage(uid string, path websocket.Path) error

PublishSubscribeMessage provides a mock function with given fields: uid, path

func (*MessagePublisher) PublishUnsubscribeMessage

func (_m *MessagePublisher) PublishUnsubscribeMessage(uid string, path websocket.Path) error

PublishUnsubscribeMessage provides a mock function with given fields: uid, path

func (*MessagePublisher) SetConn

func (_m *MessagePublisher) SetConn(conn *gorillawebsocket.Conn)

SetConn provides a mock function with given fields: conn

type Router

type Router struct {
	mock.Mock
}

Router is an autogenerated mock type for the Router type

func (*Router) RouteMessage

func (_m *Router) RouteMessage(_a0 []byte)

RouteMessage provides a mock function with given fields: _a0

func (*Router) SetUid

func (_m *Router) SetUid(_a0 string)

SetUid provides a mock function with given fields: _a0

type Topic

type Topic struct {
	mock.Mock
}

Topic is an autogenerated mock type for the Topic type

func (*Topic) Format

func (_m *Topic) Format(info *sdk.WsMessageInfo) websocket.Path

Format provides a mock function with given fields: info

type TopicHandlersStorage

type TopicHandlersStorage struct {
	mock.Mock
}

TopicHandlersStorage is an autogenerated mock type for the TopicHandlersStorage type

func (*TopicHandlersStorage) GetHandler

GetHandler provides a mock function with given fields: path

func (*TopicHandlersStorage) HasHandler

func (_m *TopicHandlersStorage) HasHandler(path websocket.Path) bool

HasHandler provides a mock function with given fields: path

func (*TopicHandlersStorage) SetTopicHandler

func (_m *TopicHandlersStorage) SetTopicHandler(path websocket.Path, handler *websocket.TopicHandler)

SetTopicHandler provides a mock function with given fields: path, handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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