Versions in this module Expand all Collapse all v0 v0.1.81 Feb 12, 2025 Changes in this version + const DataPack + const Message + type IConnManager interface + Add func(conn IConnection) + ClearConn func() + Get func(connID uint32) (IConnection, error) + Len func() int + Remove func(conn IConnection) + type IConnection interface + Context func() context.Context + GetConnID func() uint32 + GetProperty func(key string) (interface{}, error) + GetTCPConnection func() *net.TCPConn + RemoteAddr func() net.Addr + RemoveProperty func(key string) + SendBuffMsg func(msgID uint32, data []byte) error + SendMsg func(msgID uint32, data []byte) error + SetProperty func(key string, value interface{}) + Start func() + Stop func() + type IDataPack interface + GetHeadLen func() uint32 + Pack func(msg IMessage) ([]byte, error) + Unpack func([]byte) (IMessage, error) + type IMessage interface + GetData func() []byte + GetDataLen func() uint32 + GetMsgID func() uint32 + SetData func([]byte) + SetDataLen func(uint32) + SetMsgID func(uint32) + type IMsgHandle interface + AddRouter func(msgID uint32, router IRouter) + DoMsgHandler func(request IRequest) + SendMsgToTaskQueue func(request IRequest) + StartWorkerPool func() + type IRequest interface + GetConnection func() IConnection + GetData func() []byte + GetMsgID func() uint32 + type IRouter interface + Handle func(request IRequest) + PostHandle func(request IRequest) + PreHandle func(request IRequest) + type IServer interface + AddRouter func(msgID uint32, router IRouter) + CallOnConnStart func(conn IConnection) + CallOnConnStop func(conn IConnection) + GetConnMgr func() IConnManager + Packet func() IDataPack + Serve func() + SetOnConnStart func(func(IConnection)) + SetOnConnStop func(func(IConnection)) + Start func() + Stop func() v0.1.78 Jan 31, 2024