Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Queue chan Payload MAX_QUEUE = 1000 MaxLength int64 = 5000 )
View Source
var ( MaxWorker = os.Getenv("MAX_WORKERS") MaxQueue = os.Getenv("MAX_QUEUE") )
View Source
var JobQueue chan Job
Functions ¶
func StartProcessor ¶
func StartProcessor()
Types ¶
type Dispatcher ¶
type Dispatcher struct { WorkerPool chan chan Job // contains filtered or unexported fields }
func NewDispatcher ¶
func NewDispatcher(maxWorkers int) *Dispatcher
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
func (*Dispatcher) Stop ¶
func (d *Dispatcher) Stop()
type PayloadCollection ¶
Click to show internal directories.
Click to hide internal directories.