Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanJob ¶
func (*BeanJob) Bury ¶
Bury places the given job in a holding area in the job's tube and sets its priority to pri. The job will not be scheduled again until it has been kicked; see also the documentation of Kick.
func (*BeanJob) Release ¶
Release tells the server to perform the following actions: set the priority of the given job to pri, remove it from the list of jobs reserved by c, wait delay seconds, then place the job in the ready queue, which makes it available for reservation by any client.
type BeanWorker ¶
func (*BeanWorker) Worker ¶
func (bw *BeanWorker) Worker(tube string, numberOfWorkers int, fn JobHandler)
create number of worker as go routines
Click to show internal directories.
Click to hide internal directories.