Documentation ¶
Index ¶
Constants ¶
View Source
const ( CHANNEL_NAME_GOOGLE = "GooglePlay" CHANNEL_NAME_APPLE = "AppStore" PLATFORM_NAME_GOOGLE = "Android" PLATFORM_NAME_APPLE = "Ios" )
View Source
const ( E_SERVER_STATUS_RUNING = 0 E_SERVER_STATUS_MAINTAIN = 1 E_SERVER_STATUS_TESTING = 2 )
View Source
const ( ProtoRetCodeError = -1 ProtoRetCodeLoginOK = 0 // 可以登陆 ProtoRetCodeProhibitionLogin = 1 // 禁止登陆 ProtoRetCodeNeedUpdate = 2 // 版本需要更新 ProtoRetCodeMaintenance = 3 // 服务器维护中 )
View Source
const (
APINAME_LoginCheck = "LoginCheck"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintainInfoS ¶
type MaintainInfoS struct {
MaintainKey MaintainParams `json:"gm_tool_game_maintain_key"`
}
type MaintainParams ¶
type ProtoClientNavigateReq ¶
type ProtoClientNavigateReq struct {}
-------------------------------------------------------------------------------------------------------- 根据客户端版本下发客户端的登录信息
type ProtoClientNavigateRes ¶
type ProtoClientNavigateRes struct {}
type ProtoGuideSvrLoginCheckReqS ¶
type ProtoGuideSvrLoginCheckReqS struct { ClientVersion string `json:"ClientVersion"` PlatformName string `json:"PlatformName"` ChannelName string `json:"ChannelName"` }
登录检查请求
type ProtoGuideSvrLoginInfoS ¶
type ProtoGuideSvrLoginInfoS struct { ServerIPs []string `json:"ServerIPs"` // 根据负载排序的接入IP列表 Port int `json:Port` ClientInternetIP string `json:"ClientInternetIP"` }
登录信息
type ProtoGuideSvrMaintenanceS ¶
type ProtoGuideSvrMaintenanceS struct { Bulletin string `json:"Bulletin"` // 维护公告 RemainingSeconds int `json:"RemainingSeconds"` // 开服预计剩余秒数 }
服务器维护回应
type ProtoGuideSvrVersionUpdateS ¶
type ProtoGuideSvrVersionUpdateS struct { NewVersion string `json:"NewVersion"` ChannelName string `json:"ChannelName"` UpdateUrl string `json:"UpdateUrl"` }
版本更新回应
Click to show internal directories.
Click to hide internal directories.