Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerConn ¶
type Workerpool ¶
type Workerpool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(w int, t int, handler HandlerConn) *Workerpool
func (*Workerpool) AddTask ¶
func (wp *Workerpool) AddTask(conn net.Conn)
func (*Workerpool) Close ¶
func (wp *Workerpool) Close()
func (*Workerpool) Start ¶
func (wp *Workerpool) Start()
func (*Workerpool) StartWorker ¶
func (wp *Workerpool) StartWorker()
Click to show internal directories.
Click to hide internal directories.