proto

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 ChatACK

type ChatACK struct {
	Content string
}

func (*ChatACK) String

func (self *ChatACK) String() string

type ChatREQ

type ChatREQ struct {
	Content string
}

func (*ChatREQ) String

func (self *ChatREQ) String() string

type ClientClosedACK

type ClientClosedACK struct {
	ID ClientID
}

func (*ClientClosedACK) String

func (self *ClientClosedACK) String() string

type ClientID

type ClientID struct {
	ID    int64  // 客户端在网关上的SessionID
	SvcID string // 客户端在哪个网关
}

func (*ClientID) String

func (self *ClientID) String() string

type CloseClientACK

type CloseClientACK struct {
	ID  []int64
	All bool
}

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
}

func (*LoginACK) String

func (self *LoginACK) String() string

type LoginREQ

type LoginREQ struct {
	Version  string
	Platform string
	UID      string
}

func (*LoginREQ) String

func (self *LoginREQ) String() string

type PingACK

type PingACK struct {
}

func (*PingACK) String

func (self *PingACK) String() string

type PingREQ

type PingREQ struct {
}

func (*PingREQ) String

func (self *PingREQ) String() 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

type ServerInfo struct {
	IP   string
	Port int32
}

func (*ServerInfo) String

func (self *ServerInfo) String() string

type ServiceIdentifyACK

type ServiceIdentifyACK struct {
	SvcName string
	SvcID   string
}

func (*ServiceIdentifyACK) String

func (self *ServiceIdentifyACK) String() string

type VerifyACK

type VerifyACK struct {
	Result ResultCode
}

func (*VerifyACK) String

func (self *VerifyACK) String() string

type VerifyREQ

type VerifyREQ struct {
	GameToken string
}

func (*VerifyREQ) String

func (self *VerifyREQ) String() string

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL