mockasync

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 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 AsyncDispatcher

type AsyncDispatcher struct {
	mock.Mock
}

AsyncDispatcher is an autogenerated mock type for the AsyncDispatcher type

func NewAsyncDispatcher added in v0.9.18

func NewAsyncDispatcher(t mockConstructorTestingTNewAsyncDispatcher) *AsyncDispatcher

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

func (*AsyncDispatcher) Close

func (_m *AsyncDispatcher) Close()

Close provides a mock function with given fields:

func (*AsyncDispatcher) DispatchMsgAsync

func (_m *AsyncDispatcher) DispatchMsgAsync(ctx context.Context, msg *messages.SendTransaction, ack bool) (*messages.AsyncSentMsg, error)

DispatchMsgAsync provides a mock function with given fields: ctx, msg, ack

func (*AsyncDispatcher) HandleReceipts

func (_m *AsyncDispatcher) HandleReceipts(res http.ResponseWriter, req *http.Request, params httprouter.Params)

HandleReceipts provides a mock function with given fields: res, req, params

func (*AsyncDispatcher) IsInitialized

func (_m *AsyncDispatcher) IsInitialized() bool

IsInitialized provides a mock function with given fields:

func (*AsyncDispatcher) Run

func (_m *AsyncDispatcher) Run() error

Run provides a mock function with given fields:

func (*AsyncDispatcher) ValidateConf

func (_m *AsyncDispatcher) ValidateConf() error

ValidateConf provides a mock function with given fields:

type Dispatcher added in v0.9.18

type Dispatcher struct {
	mock.Mock
}

Dispatcher is an autogenerated mock type for the Dispatcher type

func NewDispatcher added in v0.9.18

func NewDispatcher(t mockConstructorTestingTNewDispatcher) *Dispatcher

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

func (*Dispatcher) Close added in v0.9.18

func (_m *Dispatcher) Close()

Close provides a mock function with given fields:

func (*Dispatcher) DispatchMsgAsync added in v0.9.18

func (_m *Dispatcher) DispatchMsgAsync(ctx context.Context, msg *messages.SendTransaction, ack bool) (*messages.AsyncSentMsg, error)

DispatchMsgAsync provides a mock function with given fields: ctx, msg, ack

func (*Dispatcher) HandleReceipts added in v0.9.18

func (_m *Dispatcher) HandleReceipts(res http.ResponseWriter, req *http.Request, params httprouter.Params)

HandleReceipts provides a mock function with given fields: res, req, params

func (*Dispatcher) IsInitialized added in v0.9.18

func (_m *Dispatcher) IsInitialized() bool

IsInitialized provides a mock function with given fields:

func (*Dispatcher) Run added in v0.9.18

func (_m *Dispatcher) Run() error

Run provides a mock function with given fields:

func (*Dispatcher) ValidateConf added in v0.9.18

func (_m *Dispatcher) ValidateConf() error

ValidateConf provides a mock function with given fields:

Jump to

Keyboard shortcuts

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