mocks

package
v2.2.0-mercury-20230602 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	mock.Mock
}

HttpServer is an autogenerated mock type for the HttpServer type

func NewHttpServer

func NewHttpServer(t mockConstructorTestingTNewHttpServer) *HttpServer

NewHttpServer creates a new instance of HttpServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HttpServer) Close

func (_m *HttpServer) Close() error

Close provides a mock function with given fields:

func (*HttpServer) SetHTTPRequestHandler

func (_m *HttpServer) SetHTTPRequestHandler(handler network.HTTPRequestHandler)

SetHTTPRequestHandler provides a mock function with given fields: handler

func (*HttpServer) Start

func (_m *HttpServer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type WebSocketServer

type WebSocketServer struct {
	mock.Mock
}

WebSocketServer is an autogenerated mock type for the WebSocketServer type

func NewWebSocketServer

func NewWebSocketServer(t mockConstructorTestingTNewWebSocketServer) *WebSocketServer

NewWebSocketServer creates a new instance of WebSocketServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WebSocketServer) Close

func (_m *WebSocketServer) Close() error

Close provides a mock function with given fields:

func (*WebSocketServer) Start

func (_m *WebSocketServer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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