Documentation ¶
Overview ¶
Package bs_gate is a generated protocol buffer package.
It is generated from these files:
github.com/3zheng/railgun/protodefine/gate/gate.proto
It has these top-level messages:
PulseReq PulseRsp GateTransferData AuthInfo LoginToken HelloReq HelloRsp
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CMDID_Gate_name = map[int32]string{
0: "IDUnknow",
1: "IDPulseReq",
2: "IDPulseRsp",
3: "IDTransferData",
4: "IDAuthInfo",
5: "IDLoginToken",
6: "IDHelloReq",
7: "IDHelloRsp",
100: "IDLast",
}
View Source
var CMDID_Gate_value = map[string]int32{
"IDUnknow": 0,
"IDPulseReq": 1,
"IDPulseRsp": 2,
"IDTransferData": 3,
"IDAuthInfo": 4,
"IDLoginToken": 5,
"IDHelloReq": 6,
"IDHelloRsp": 7,
"IDLast": 100,
}
View Source
var HelloRsp_RspFlag_name = map[int32]string{
0: "UNKNOWN",
1: "EncryptInfo",
2: "AdviceNewGate",
4: "LoginToken",
}
View Source
var HelloRsp_RspFlag_value = map[string]int32{
"UNKNOWN": 0,
"EncryptInfo": 1,
"AdviceNewGate": 2,
"LoginToken": 4,
}
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶
type AuthInfo struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId" json:"user_id,omitempty"` Reason uint32 `protobuf:"varint,3,opt,name=reason" json:"reason,omitempty"` Info string `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` }
func (*AuthInfo) Descriptor ¶
func (*AuthInfo) ProtoMessage ¶
func (*AuthInfo) ProtoMessage()
type CMDID_Gate ¶
type CMDID_Gate int32
const ( CMDID_Gate_IDUnknow CMDID_Gate = 0 CMDID_Gate_IDPulseReq CMDID_Gate = 1 CMDID_Gate_IDPulseRsp CMDID_Gate = 2 CMDID_Gate_IDTransferData CMDID_Gate = 3 CMDID_Gate_IDAuthInfo CMDID_Gate = 4 CMDID_Gate_IDLoginToken CMDID_Gate = 5 CMDID_Gate_IDHelloReq CMDID_Gate = 6 CMDID_Gate_IDHelloRsp CMDID_Gate = 7 CMDID_Gate_IDLast CMDID_Gate = 100 )
func (CMDID_Gate) EnumDescriptor ¶
func (CMDID_Gate) EnumDescriptor() ([]byte, []int)
func (CMDID_Gate) String ¶
func (x CMDID_Gate) String() string
type GateTransferData ¶
type GateTransferData struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` AttApptype uint32 `protobuf:"varint,2,opt,name=att_apptype,json=attApptype" json:"att_apptype,omitempty"` AttAppid uint32 `protobuf:"varint,3,opt,name=att_appid,json=attAppid" json:"att_appid,omitempty"` DataCmdKind uint32 `protobuf:"varint,4,opt,name=data_cmd_kind,json=dataCmdKind" json:"data_cmd_kind,omitempty"` DataCmdSubid uint32 `protobuf:"varint,5,opt,name=data_cmd_subid,json=dataCmdSubid" json:"data_cmd_subid,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` ReqId uint32 `protobuf:"varint,7,opt,name=req_id,json=reqId" json:"req_id,omitempty"` ClientRemoteAddress string `protobuf:"bytes,8,opt,name=client_remote_address,json=clientRemoteAddress" json:"client_remote_address,omitempty"` }
func (*GateTransferData) Descriptor ¶
func (*GateTransferData) Descriptor() ([]byte, []int)
func (*GateTransferData) GetBase ¶
func (m *GateTransferData) GetBase() *bs_types.BaseInfo
func (*GateTransferData) ProtoMessage ¶
func (*GateTransferData) ProtoMessage()
func (*GateTransferData) Reset ¶
func (m *GateTransferData) Reset()
func (*GateTransferData) String ¶
func (m *GateTransferData) String() string
type HelloReq ¶
type HelloReq struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` AdId uint32 `protobuf:"varint,2,opt,name=ad_id,json=adId" json:"ad_id,omitempty"` Others string `protobuf:"bytes,3,opt,name=others" json:"others,omitempty"` BuilderNo uint32 `protobuf:"varint,4,opt,name=builder_no,json=builderNo" json:"builder_no,omitempty"` GameKind uint32 `protobuf:"varint,5,opt,name=game_kind,json=gameKind" json:"game_kind,omitempty"` ClientVersion string `protobuf:"bytes,6,opt,name=client_version,json=clientVersion" json:"client_version,omitempty"` // =1 表示pc win7 winxp // =2 表示ios // =3 表示android // =4 表示win10 ClientType uint32 `protobuf:"varint,7,opt,name=client_type,json=clientType" json:"client_type,omitempty"` }
func (*HelloReq) Descriptor ¶
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
type HelloRsp ¶
type HelloRsp struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` RspFlag uint32 `protobuf:"varint,2,opt,name=rsp_flag,json=rspFlag" json:"rsp_flag,omitempty"` GateAddress []string `protobuf:"bytes,3,rep,name=gate_address,json=gateAddress" json:"gate_address,omitempty"` EncryptKey []byte `protobuf:"bytes,4,opt,name=encrypt_key,json=encryptKey,proto3" json:"encrypt_key,omitempty"` LoginToken uint32 `protobuf:"varint,5,opt,name=login_token,json=loginToken" json:"login_token,omitempty"` // =0 表示最新版本 // =1 表示有新版本,但当前版本还可以用 // =2 强制用户更新版本,当前连接会被断开 VersionResult uint32 `protobuf:"varint,6,opt,name=version_result,json=versionResult" json:"version_result,omitempty"` DownUrl string `protobuf:"bytes,7,opt,name=down_url,json=downUrl" json:"down_url,omitempty"` }
func (*HelloRsp) Descriptor ¶
func (*HelloRsp) ProtoMessage ¶
func (*HelloRsp) ProtoMessage()
type HelloRsp_RspFlag ¶
type HelloRsp_RspFlag int32
const ( HelloRsp_UNKNOWN HelloRsp_RspFlag = 0 HelloRsp_EncryptInfo HelloRsp_RspFlag = 1 HelloRsp_AdviceNewGate HelloRsp_RspFlag = 2 HelloRsp_LoginToken HelloRsp_RspFlag = 4 )
func (HelloRsp_RspFlag) EnumDescriptor ¶
func (HelloRsp_RspFlag) EnumDescriptor() ([]byte, []int)
func (HelloRsp_RspFlag) String ¶
func (x HelloRsp_RspFlag) String() string
type LoginToken ¶
type LoginToken struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` LoginToken uint32 `protobuf:"varint,2,opt,name=login_token,json=loginToken" json:"login_token,omitempty"` }
func (*LoginToken) Descriptor ¶
func (*LoginToken) Descriptor() ([]byte, []int)
func (*LoginToken) GetBase ¶
func (m *LoginToken) GetBase() *bs_types.BaseInfo
func (*LoginToken) ProtoMessage ¶
func (*LoginToken) ProtoMessage()
func (*LoginToken) Reset ¶
func (m *LoginToken) Reset()
func (*LoginToken) String ¶
func (m *LoginToken) String() string
type PulseReq ¶
type PulseReq struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` MySpeed uint32 `protobuf:"varint,2,opt,name=my_speed,json=mySpeed" json:"my_speed,omitempty"` SpeedData uint32 `protobuf:"varint,3,opt,name=speed_data,json=speedData" json:"speed_data,omitempty"` AttachedData []byte `protobuf:"bytes,4,opt,name=attached_data,json=attachedData,proto3" json:"attached_data,omitempty"` }
func (*PulseReq) Descriptor ¶
func (*PulseReq) ProtoMessage ¶
func (*PulseReq) ProtoMessage()
type PulseRsp ¶
type PulseRsp struct { Base *bs_types.BaseInfo `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` SpeedData uint32 `protobuf:"varint,2,opt,name=speed_data,json=speedData" json:"speed_data,omitempty"` AttachdData []byte `protobuf:"bytes,3,opt,name=attachd_data,json=attachdData,proto3" json:"attachd_data,omitempty"` }
func (*PulseRsp) Descriptor ¶
func (*PulseRsp) ProtoMessage ¶
func (*PulseRsp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.