Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
ID int
Work WorkQueue
Worker WorkerQueue
QuitChan chan bool
}
Worker is describing a worker to which work can be send
func NewWorker ¶
NewWorker creates, and returns a new Worker object. Its only argument is a channel that the worker can add itself to whenever it is done its work.
type WorkerQueue ¶
type WorkerQueue chan chan interface{}
WorkerQueue describes the queue for the workers
Click to show internal directories.
Click to hide internal directories.