Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker ¶
type Worker struct {
WorkerPool chan chan types.Job
JobChannel chan types.Job
// quit tells the worker to stop.
Quit chan bool
// Done is used to notify that the worker has stopped.
Done chan bool
Handlers handlers.Handlers
// contains filtered or unexported fields
}
Worker represents the worker that executes the job.
func NewWorker ¶
func NewWorker( invClientHandler *clients.InventoryClientHandler, hScheduleCache *schedule_cache.HScheduleCacheClient, id int, workerPool chan chan types.Job, ) *Worker
Click to show internal directories.
Click to hide internal directories.