Documentation ¶
Index ¶
Constants ¶
View Source
const Concurrency = 4
View Source
const EmptyQueueWaitTime = 2 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct { Concurrency int BufferSize int Repository result.Repository Runner runner.Runner Log *zap.SugaredLogger }
func NewWorker ¶
func NewWorker(resultsRepository result.Repository, runner runner.Runner) Worker
NewWorker returns new worker instance with data repository and runner
func (*Worker) PullExecution ¶
func (*Worker) PullExecutions ¶
PullExecutions gets executions from queue - returns executions channel
Click to show internal directories.
Click to hide internal directories.