mocks

package
v0.17.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) Submit

func (_m *Client) Submit(ctx context.Context, pattern worker.TaskPattern, payload []byte) error

Submit provides a mock function with given fields: ctx, pattern, payload

func (*Client) SubmitToBatch

func (_m *Client) SubmitToBatch(ctx context.Context, pattern worker.TaskPattern, payload []byte) error

SubmitToBatch provides a mock function with given fields: ctx, pattern, payload

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func NewServer

func NewServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Server

NewServer creates a new instance of Server. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Server) HandleCron

func (_m *Server) HandleCron(spec worker.CronSpec, cronFunc worker.CronHandler)

HandleCron provides a mock function with given fields: spec, cronFunc

func (*Server) HandleTask

func (_m *Server) HandleTask(pattern worker.TaskPattern, cb worker.TaskHandler, opts ...worker.TaskOption)

HandleTask provides a mock function with given fields: pattern, cb, opts

func (*Server) Shutdown

func (_m *Server) Shutdown()

Shutdown provides a mock function with given fields:

func (*Server) Start

func (_m *Server) Start() error

Start 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