Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFull = errors.New("worker queue is full, make it larger in the config.")
Functions ¶
Types ¶
type IWorkerPool ¶
type IWorkerPool interface { TryPut(task IMsg) error Start() Stop() AddHandler(msgType string, handler MsgHandler) DelHandler(msgType string) }
type MsgHandler ¶
Click to show internal directories.
Click to hide internal directories.