Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTCPKeepAlive = 3 * time.Second
)
Variables ¶
View Source
var ( DefaultLogger = logging.NewLogger( logging.LoggerConfig{ Level: zerolog.DebugLevel, NoColor: true, }) )
Functions ¶
Types ¶
type ServerConfig ¶ added in v0.0.5
type ServerConfig struct { Network string Address string SoftLimit uint64 HardLimit uint64 EnableTicker bool MultiCore bool LockOSThread bool ReuseAddress bool ReusePort bool LoadBalancer gnet.LoadBalancing TickInterval time.Duration ReadBufferCap int WriteBufferCap int SocketRecvBuffer int SocketSendBuffer int TCPKeepAlive time.Duration TCPNoDelay gnet.TCPSocketOpt }
Click to show internal directories.
Click to hide internal directories.