Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = 0 ConfigErrorCode = 100 MsgErrorCode = 200 ConnectionErrorCode = 300 TimerErrorCode = 400 RoomUnexistErrorCode = 10000 PlayerNotInRoomErrorCode = 10001 ParamsErrorCode = 10002 )
View Source
const ( FrameworkError = iota BusinuessError )
Variables ¶
View Source
var ( ConfigError = NewFrameworkError(ConfigErrorCode, "config error") MsgError = NewFrameworkError(MsgErrorCode, "msg error") ConnectionClosedError = NewFrameworkError(ConnectionErrorCode, "connection closed") TimerTickError = NewFrameworkError(TimerErrorCode, "invalid tick") TimerBucketError = NewFrameworkError(TimerErrorCode, "invalid bucketNum") TimerTaskRepeatError = NewFrameworkError(TimerErrorCode, "task repeat") TimerTaskAddError = NewFrameworkError(TimerErrorCode, "task add error") RoomUnexistError = New(RoomUnexistErrorCode, "room unexist") PlayerNotInRoomError = New(PlayerNotInRoomErrorCode, "player not in room") RoomIdParamError = New(ParamsErrorCode, "roomid empty") PlayerIdParamError = New(ParamsErrorCode, "playerid empty") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.