mocks

package
v2.2.1-mercury-20230627 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t mockConstructorTestingTNewHandler) *Handler

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

func (*Handler) Close

func (_m *Handler) Close() error

Close provides a mock function with given fields:

func (*Handler) HandleNodeMessage

func (_m *Handler) HandleNodeMessage(ctx context.Context, msg *api.Message, nodeAddr string) error

HandleNodeMessage provides a mock function with given fields: ctx, msg, nodeAddr

func (*Handler) HandleUserMessage

func (_m *Handler) HandleUserMessage(ctx context.Context, msg *api.Message, callbackCh chan<- handlers.UserCallbackPayload) error

HandleUserMessage provides a mock function with given fields: ctx, msg, callbackCh

func (*Handler) Start

func (_m *Handler) 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