Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface {
Start()
Stop()
Dispatch(r Request)
}
func NewDispatcher ¶
func NewDispatcher(nworkers, nrequests int) Dispatcher
type Request ¶
func NewRequest ¶
type Worker ¶
type Worker interface {
Start()
Stop()
}
func NewWorker ¶
func NewWorker(id int, workers WorkerQueue) Worker
type WorkerQueue ¶
type WorkerQueue chan chan Request
Click to show internal directories.
Click to hide internal directories.