Documentation
¶
Overview ¶
Package server 提供TCP服务器实现 包括连接管理、路由、工作池等功能
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Addr string // 服务器监听地址
TLSConfig *tls.Config // TLS配置
Mux *Mux // 路由多路复用器
Pool *WorkerPool // 工作池
// contains filtered or unexported fields
}
Server TCP服务器
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
WorkerPool 管理处理请求的goroutine
Click to show internal directories.
Click to hide internal directories.