Versions in this module Expand all Collapse all v1 v1.0.1 Aug 31, 2021 Changes in this version + type IConnManager interface + Add func(conn IConnection) + ClearConn func() + ClearOneConn func(connID int64) + Get func(connID int64) (IConnection, error) + Len func() int + Remove func(conn IConnection) + type IConnection interface + GetConnID func() int64 + GetProperty func(key string) (interface{}, error) + GetTCPConnection func() *net.TCPConn + GetTcpServer func() IServer + IsAlive func() bool + KeepAlive func() + 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{}) + SetSPublicKey func(key sm2.PublicKey) + Start func() + Stop func() + type IDataPack interface + GetHeadLen func() uint32 + Pack func(msg IMessage) ([]byte, error) + Unpack func([]byte) (IMessage, error) + type ILimiter interface + Increase func() + IsAvailable func() bool + 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() Packet + Serve func() + SetOnConnStart func(func(IConnection)) + SetOnConnStop func(func(IConnection)) + Start func() + Stop func() + type Packet interface + GetHeadLen func() uint32 + Pack func(msg IMessage) ([]byte, error) + Unpack func(binaryData []byte) (IMessage, error)