Documentation ¶
Index ¶
- type JobQueue
- type JobQueue_Dequeue_Call
- func (_c *JobQueue_Dequeue_Call) Return(_a0 error) *JobQueue_Dequeue_Call
- func (_c *JobQueue_Dequeue_Call) Run(run func(ctx context.Context, kinds []string, fn worker.DequeueFn)) *JobQueue_Dequeue_Call
- func (_c *JobQueue_Dequeue_Call) RunAndReturn(run func(context.Context, []string, worker.DequeueFn) error) *JobQueue_Dequeue_Call
- type JobQueue_Enqueue_Call
- func (_c *JobQueue_Enqueue_Call) Return(_a0 error) *JobQueue_Enqueue_Call
- func (_c *JobQueue_Enqueue_Call) Run(run func(ctx context.Context, jobs ...worker.Job)) *JobQueue_Enqueue_Call
- func (_c *JobQueue_Enqueue_Call) RunAndReturn(run func(context.Context, ...worker.Job) error) *JobQueue_Enqueue_Call
- type JobQueue_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobQueue ¶
JobQueue is an autogenerated mock type for the JobQueue type
func NewJobQueue ¶
NewJobQueue creates a new instance of JobQueue. 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 (*JobQueue) EXPECT ¶
func (_m *JobQueue) EXPECT() *JobQueue_Expecter
type JobQueue_Dequeue_Call ¶
JobQueue_Dequeue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dequeue'
func (*JobQueue_Dequeue_Call) Return ¶
func (_c *JobQueue_Dequeue_Call) Return(_a0 error) *JobQueue_Dequeue_Call
func (*JobQueue_Dequeue_Call) Run ¶
func (_c *JobQueue_Dequeue_Call) Run(run func(ctx context.Context, kinds []string, fn worker.DequeueFn)) *JobQueue_Dequeue_Call
func (*JobQueue_Dequeue_Call) RunAndReturn ¶
func (_c *JobQueue_Dequeue_Call) RunAndReturn(run func(context.Context, []string, worker.DequeueFn) error) *JobQueue_Dequeue_Call
type JobQueue_Enqueue_Call ¶
JobQueue_Enqueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enqueue'
func (*JobQueue_Enqueue_Call) Return ¶
func (_c *JobQueue_Enqueue_Call) Return(_a0 error) *JobQueue_Enqueue_Call
func (*JobQueue_Enqueue_Call) Run ¶
func (_c *JobQueue_Enqueue_Call) Run(run func(ctx context.Context, jobs ...worker.Job)) *JobQueue_Enqueue_Call
func (*JobQueue_Enqueue_Call) RunAndReturn ¶
func (_c *JobQueue_Enqueue_Call) RunAndReturn(run func(context.Context, ...worker.Job) error) *JobQueue_Enqueue_Call
type JobQueue_Expecter ¶
type JobQueue_Expecter struct {
// contains filtered or unexported fields
}
func (*JobQueue_Expecter) Dequeue ¶
func (_e *JobQueue_Expecter) Dequeue(ctx interface{}, kinds interface{}, fn interface{}) *JobQueue_Dequeue_Call
Dequeue is a helper method to define mock.On call
- ctx context.Context
- kinds []string
- fn worker.DequeueFn
func (*JobQueue_Expecter) Enqueue ¶
func (_e *JobQueue_Expecter) Enqueue(ctx interface{}, jobs ...interface{}) *JobQueue_Enqueue_Call
Enqueue is a helper method to define mock.On call
- ctx context.Context
- jobs ...worker.Job
Click to show internal directories.
Click to hide internal directories.