Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job represents the job to be run
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶
func NewWorkerPool(maxWorkers int) *WorkerPool
func (*WorkerPool) FeedPayload ¶
func (wp *WorkerPool) FeedPayload(payload model.Payload)
func (*WorkerPool) Run ¶
func (wp *WorkerPool) Run()
func (*WorkerPool) SetHandler ¶
func (wp *WorkerPool) SetHandler(f Handler) *WorkerPool
func (*WorkerPool) Stop ¶
func (wp *WorkerPool) Stop()
Click to show internal directories.
Click to hide internal directories.