Documentation ¶
Index ¶
- func NewWsServer(gatewayCfg *dto.GatewayConfig, ce cache.Provider, tcpAddr string) gnet.EventHandler
- type TcpServer
- type WsServer
- func (wss *WsServer) OnBoot(eng gnet.Engine) gnet.Action
- func (wss *WsServer) OnClose(c gnet.Conn, err error) (action gnet.Action)
- func (wss *WsServer) OnOpen(c gnet.Conn) (out []byte, action gnet.Action)
- func (wss *WsServer) OnShutdown(eng gnet.Engine)
- func (wss *WsServer) OnTick() (delay time.Duration, action gnet.Action)
- func (wss *WsServer) OnTraffic(c gnet.Conn) (action gnet.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWsServer ¶
func NewWsServer(gatewayCfg *dto.GatewayConfig, ce cache.Provider, tcpAddr string) gnet.EventHandler
Types ¶
type TcpServer ¶
type TcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServer ¶
Click to show internal directories.
Click to hide internal directories.