Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
func NewDispatcher ¶
func NewDispatcher(name string, nworkers int) Dispatcher
func (Dispatcher) Start ¶
func (d Dispatcher) Start(pfn ProcessorFn, destination *Dispatcher) Dispatcher
type PElement ¶
type PElement struct {
Name string
NWorkers int
PFN ProcessorFn
}
type ProcessorFn ¶
type ProcessorFn func(w Work, dispatcherName string, destination *Dispatcher)
type Worker ¶
type Worker struct {
ID int
Work chan Work
WorkerQueue chan chan Work
QuitChan chan bool
PFN ProcessorFn
Destination *Dispatcher
}
func NewWorker ¶
func NewWorker(id int, workerQueue chan chan Work, pfn ProcessorFn, destination *Dispatcher) Worker
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
fetchconvert
command
|
|
|
pipeline
command
|
|
|
twodisaptchers
command
|
|
|
withbeanrpc
command
|
Click to show internal directories.
Click to hide internal directories.