Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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) 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 ¶
Server is an autogenerated mock type for the Server type
func NewServer ¶
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