Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkQueue = make(chan Work, 100)
WorkQueue is the global queue of work to dispatch
View Source
var WorkerQueue chan chan Work
WorkerQueue is the global queue of Workers
Functions ¶
func StartDispatcher ¶
func StartDispatcher(nworkers int)
StartDispatcher is charged to start n workers.
Types ¶
type ChanWriter ¶
type ChanWriter struct {
ByteChan chan []byte
}
ChanWriter is a simple writer to a channel of byte.
Click to show internal directories.
Click to hide internal directories.