Documentation ¶
Index ¶
- Constants
- Variables
- func Marshal(v interface{}) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func NewMessage(cmd uint32, v interface{}) *net.Message
- func SetCodec(c ICodec)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(s string, v interface{}) error
- type BroadcastNotify
- type CenterUpdateServerInfoReq
- type CenterUpdateServerInfoRsp
- type ICodec
- type PlazaLoginReq
- type PlazaLoginRsp
- type ServerInfo
Constants ¶
View Source
const ( RPC_METHOD_UPDATE_SERVER_INFO = "update server info" CMD_CENTER_UPDATE_GAME_LIST_NOTIFY uint32 = 1 )
View Source
const ( CMD_PLAZA_LOGIN_REQ uint32 = 1001 // 登录请求 CMD_PLAZA_LOGIN_RSP uint32 = 1002 // 登录响应 CMD_PLAZA_GAME_LIST_NOTIFY uint32 = 1003 // 游戏服务列表通知 )
Variables ¶
View Source
var ( SERVER_TYPE_PLAZA = "plaza" SERVER_TYPE_GAME = "game" )
Functions ¶
func MarshalToString ¶
func NewMessage ¶
func UnmarshalFromString ¶
Types ¶
type BroadcastNotify ¶
type BroadcastNotify struct {
Msg string `json:"msg"`
}
type CenterUpdateServerInfoReq ¶
type CenterUpdateServerInfoReq struct {
ServerInfo
}
type ICodec ¶
type PlazaLoginReq ¶
type PlazaLoginReq struct { }
type PlazaLoginRsp ¶
type ServerInfo ¶
Click to show internal directories.
Click to hide internal directories.