proto

package
v0.0.0-...-b988991 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 0 Imported by: 0

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 MaintainParams struct {
	WhiteList    []string `json:"white_list"`
	MaintainFlag int      `json:"game_maintain_flag"`
	WhiteFlag    int      `json:"white_flag"`
	MainDeadLine int64    `json:"main_dead_line"`
}

type ProtoClientNavigateReq

type ProtoClientNavigateReq struct {
	ClientVersion string `json:"ClientVersion"`
	PlatformName  string `json:"PlatformName"`
	ChannelName   string `json:"ChannelName"`
}

-------------------------------------------------------------------------------------------------------- 根据客户端版本下发客户端的登录信息

type ProtoClientNavigateRes

type ProtoClientNavigateRes struct {
	UrlLoginCheck string `json:"ULC"` // chksvrsc2.uqsoft.com:800 chksvrsc2audit.uqsoft.com:800
	UrlProxySvr   string `json:"UPS"` // proxysc2.uqsoft.com:6483 proxysc2audit.uqsoft.com:6483
	UrlSdkSvr     string `json:"USS"` // sdksvrsc2.uqsoft.com:80 sdksvrsc2audit.uqsoft.com:80
}

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"`
}

版本更新回应

Jump to

Keyboard shortcuts

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