Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IClientProtocol ¶
type ICommandInterpreter ¶
type IServerProtocol ¶
type IServerProtocol interface { OnConnectionMade(fconn Iconnection) OnConnectionLost(fconn Iconnection) StartReadThread(fconn Iconnection) InitWorker(int32) AddRpcRouter(interface{}) GetMsgHandle() Imsghandle GetDataPack() Idatapack }
type Iconnection ¶
type Iconnectionmgr ¶
type Iconnectionmgr interface { Add(Iconnection) Remove(Iconnection) error Get(uint32) (Iconnection, error) Len() int }
type Imsghandle ¶
type Imsghandle interface { DeliverToMsgQueue(interface{}) DoMsgFromGoRoutine(interface{}) AddRouter(interface{}) StartWorkerLoop(int) }
type Iserver ¶
type Iserver interface { Start() Stop() Serve() GetConnectionMgr() Iconnectionmgr GetConnectionQueue() chan interface{} AddRouter(router interface{}) CallLater(durations time.Duration, f func(v ...interface{}), args ...interface{}) CallWhen(ts string, f func(v ...interface{}), args ...interface{}) CallLoop(durations time.Duration, f func(v ...interface{}), args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.