Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // 业务函数 HandleFunc func(ctx *Context) // 设置TCP的参数 SetTcpFunc func(conn *net.Conn) ConnLimit int32 ConnTimeOut time.Duration }
ServerConfig 服务通用配置
type HandleFunc ¶
type HandleFunc func(ctx *Context)
Click to show internal directories.
Click to hide internal directories.