Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FnWorker ¶
FnWorker is an autogenerated mock type for the FnWorker type
func NewFnWorker ¶
func NewFnWorker(t NewFnWorkerT) *FnWorker
NewFnWorker creates a new instance of FnWorker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type FnWorkerPool ¶
FnWorkerPool is an autogenerated mock type for the FnWorkerPool type
func NewFnWorkerPool ¶
func NewFnWorkerPool(t NewFnWorkerPoolT) *FnWorkerPool
NewFnWorkerPool creates a new instance of FnWorkerPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FnWorkerPool) AddTask ¶
func (_m *FnWorkerPool) AddTask(task worker.TaskFunc)
AddTask provides a mock function with given fields: task
func (*FnWorkerPool) AddWorkers ¶
func (_m *FnWorkerPool) AddWorkers(count int)
AddWorkers provides a mock function with given fields: count
func (*FnWorkerPool) RemoveWorkers ¶
func (_m *FnWorkerPool) RemoveWorkers(count int)
RemoveWorkers provides a mock function with given fields: count
func (*FnWorkerPool) Stop ¶
func (_m *FnWorkerPool) Stop()
Stop provides a mock function with given fields:
func (*FnWorkerPool) TaskChannel ¶
func (_m *FnWorkerPool) TaskChannel() chan worker.TaskFunc
TaskChannel provides a mock function with given fields:
func (*FnWorkerPool) WorkersCount ¶
func (_m *FnWorkerPool) WorkersCount() int
WorkersCount provides a mock function with given fields:
type NewFnWorkerPoolT ¶
type NewFnWorkerT ¶
type NewWorkerPoolT ¶
type NewWorkerT ¶
type Task ¶
Task is an autogenerated mock type for the Task type
type Worker ¶
Worker is an autogenerated mock type for the Worker type
func NewWorker ¶
func NewWorker(t NewWorkerT) *Worker
NewWorker creates a new instance of Worker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type WorkerPool ¶
WorkerPool is an autogenerated mock type for the WorkerPool type
func NewWorkerPool ¶
func NewWorkerPool(t NewWorkerPoolT) *WorkerPool
NewWorkerPool creates a new instance of WorkerPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WorkerPool) AddTask ¶
func (_m *WorkerPool) AddTask(task worker.Task)
AddTask provides a mock function with given fields: task
func (*WorkerPool) AddWorkers ¶
func (_m *WorkerPool) AddWorkers(count int)
AddWorkers provides a mock function with given fields: count
func (*WorkerPool) RemoveWorkers ¶
func (_m *WorkerPool) RemoveWorkers(count int)
RemoveWorkers provides a mock function with given fields: count
func (*WorkerPool) Stop ¶
func (_m *WorkerPool) Stop()
Stop provides a mock function with given fields:
func (*WorkerPool) TaskChannel ¶
func (_m *WorkerPool) TaskChannel() chan worker.Task
TaskChannel provides a mock function with given fields:
func (*WorkerPool) WorkersCount ¶
func (_m *WorkerPool) WorkersCount() int
WorkersCount provides a mock function with given fields: