Documentation ¶
Index ¶
- Variables
- func GetDispatcher(svcName string) service.DispatcherFunc
- type BindBackendACK
- type ChatACK
- type ChatREQ
- type ClientClosedACK
- type ClientID
- type CloseClientACK
- type CreateRoom
- type CreateRoomACK
- type LoginACK
- type LoginREQ
- type PingACK
- type PingREQ
- type ResultCode
- type ServerInfo
- type ServiceIdentifyACK
- type VerifyACK
- type VerifyREQ
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultCodeMapperValueByName = map[string]int32{ "NoError": 0, "GameNotReady": 1, "ChatRoomNotExist": 2, } ResultCodeMapperNameByValue = map[int32]string{ 0: "NoError", 1: "GameNotReady", 2: "ChatRoomNotExist", } ResultCodeMapperTrailingCommentByValue = map[int32]string{ 0: "", 1: "", 2: "", } )
View Source
var ( Handle_Agent_PingACK = func(ev service.Event) { panic("'PingACK' not handled") } Handle_Agent_Default func(ev service.Event) )
agent
View Source
var ( Handle_Game_ChatREQ = func(ev service.Event) { panic("'ChatREQ' not handled") } Handle_Game_ChatRoomMsgREQ = func(ev service.Event) { panic("'ChatRoomMsgREQ' not handled") } Handle_Game_CreateChatRoomREQ = func(ev service.Event) { panic("'CreateChatRoomREQ' not handled") } Handle_Game_CreateRoom = func(ev service.Event) { panic("'CreateRoom' not handled") } Handle_Game_JoinChatRoomREQ = func(ev service.Event) { panic("'JoinChatRoomREQ' not handled") } Handle_Game_PingREQ = func(ev service.Event) { panic("'PingREQ' not handled") } Handle_Game_TestPbREQ = func(ev service.Event) { panic("'TestPbREQ' not handled") } Handle_Game_VerifyREQ = func(ev service.Event) { panic("'VerifyREQ' not handled") } Handle_Game_Default func(ev service.Event) )
game
View Source
var ( Handle_Login_LoginREQ = func(ev service.Event) { panic("'LoginREQ' not handled") } Handle_Login_Default func(ev service.Event) )
login
View Source
var ( Handle_Router_BindBackendACK = func(ev service.Event) { panic("'BindBackendACK' not handled") } Handle_Router_CloseClientACK = func(ev service.Event) { panic("'CloseClientACK' not handled") } Handle_Router_Default func(ev service.Event) )
router
Functions ¶
func GetDispatcher ¶
func GetDispatcher(svcName string) service.DispatcherFunc
Types ¶
type BindBackendACK ¶
type BindBackendACK struct {
ID int64
}
func (*BindBackendACK) String ¶
func (self *BindBackendACK) String() string
type ClientClosedACK ¶
type ClientClosedACK struct {
ID ClientID
}
func (*ClientClosedACK) String ¶
func (self *ClientClosedACK) String() string
type CloseClientACK ¶
func (*CloseClientACK) String ¶
func (self *CloseClientACK) String() string
type CreateRoom ¶
type CreateRoom struct {
RoomName string
}
func (*CreateRoom) String ¶
func (self *CreateRoom) String() string
type CreateRoomACK ¶
type CreateRoomACK struct {
RoomName string
}
func (*CreateRoomACK) String ¶
func (self *CreateRoomACK) String() string
type LoginACK ¶
type LoginACK struct { Result ResultCode Server ServerInfo GameToken string }
type ResultCode ¶
type ResultCode int32
const ( ResultCode_NoError ResultCode = 0 ResultCode_GameNotReady ResultCode = 1 ResultCode_ChatRoomNotExist ResultCode = 2 )
func (ResultCode) String ¶
func (self ResultCode) String() string
type ServerInfo ¶
func (*ServerInfo) String ¶
func (self *ServerInfo) String() string
type ServiceIdentifyACK ¶
func (*ServiceIdentifyACK) String ¶
func (self *ServiceIdentifyACK) String() string
type VerifyACK ¶
type VerifyACK struct {
Result ResultCode
}
Click to show internal directories.
Click to hide internal directories.