Documentation ¶
Overview ¶
Package PbLogin is a generated protocol buffer package.
It is generated from these files:
login.proto
It has these top-level messages:
VerifyReq VerifyRsp LogonReq LogonRsp CreateReq CreateRsp GetAllAreaReq GetAllAreaRsp
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command_name = map[int32]string{
401: "CMD_VERIFY_REQ",
402: "CMD_VERIFY_RSP",
403: "CMD_GET_ALL_AREA_REQ",
404: "CMD_GET_ALL_AREA_RSP",
405: "CMD_LOGON_REQ",
406: "CMD_LOGON_RSP",
407: "CMD_CREATE_REQ",
408: "CMD_CREATE_RSP",
}
View Source
var Command_value = map[string]int32{
"CMD_VERIFY_REQ": 401,
"CMD_VERIFY_RSP": 402,
"CMD_GET_ALL_AREA_REQ": 403,
"CMD_GET_ALL_AREA_RSP": 404,
"CMD_LOGON_REQ": 405,
"CMD_LOGON_RSP": 406,
"CMD_CREATE_REQ": 407,
"CMD_CREATE_RSP": 408,
}
View Source
var Errcode_name = map[int32]string{
10401: "ERR_INTER",
10402: "ERR_VERIFY_ERR",
10403: "ERR_INVALID_PARAM",
10404: "ERR_TIMEOUT",
10405: "ERR_HANDLE_LAST_REQ",
}
View Source
var Errcode_value = map[string]int32{
"ERR_INTER": 10401,
"ERR_VERIFY_ERR": 10402,
"ERR_INVALID_PARAM": 10403,
"ERR_TIMEOUT": 10404,
"ERR_HANDLE_LAST_REQ": 10405,
}
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command int32
const ( // common.command.LOGIN_CMD_BEGIN = 401 Command_CMD_VERIFY_REQ Command = 401 Command_CMD_VERIFY_RSP Command = 402 Command_CMD_GET_ALL_AREA_REQ Command = 403 Command_CMD_GET_ALL_AREA_RSP Command = 404 Command_CMD_LOGON_REQ Command = 405 Command_CMD_LOGON_RSP Command = 406 Command_CMD_CREATE_REQ Command = 407 Command_CMD_CREATE_RSP Command = 408 )
func (*Command) UnmarshalJSON ¶
type CreateReq ¶
type CreateReq struct { Username *string `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` Aid *int32 `protobuf:"zigzag32,2,req,name=aid" json:"aid,omitempty"` Sid *int32 `protobuf:"zigzag32,3,req,name=sid" json:"sid,omitempty"` Role *string `protobuf:"bytes,4,req,name=role" json:"role,omitempty"` Extend []byte `protobuf:"bytes,5,req,name=extend" json:"extend,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*CreateReq) GetUsername ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
type CreateRsp ¶
type CreateRsp struct { Roleid *uint64 `protobuf:"varint,1,req,name=roleid" json:"roleid,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*CreateRsp) ProtoMessage ¶
func (*CreateRsp) ProtoMessage()
type GetAllAreaReq ¶
type GetAllAreaReq struct { Resv *int32 `protobuf:"zigzag32,1,opt,name=resv" json:"resv,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetAllAreaReq) GetResv ¶
func (m *GetAllAreaReq) GetResv() int32
func (*GetAllAreaReq) ProtoMessage ¶
func (*GetAllAreaReq) ProtoMessage()
func (*GetAllAreaReq) Reset ¶
func (m *GetAllAreaReq) Reset()
func (*GetAllAreaReq) String ¶
func (m *GetAllAreaReq) String() string
type GetAllAreaRsp ¶
type GetAllAreaRsp struct { Infos []*PbCommon.AreaSrvInfo `protobuf:"bytes,1,rep,name=infos" json:"infos,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GetAllAreaRsp) GetInfos ¶
func (m *GetAllAreaRsp) GetInfos() []*PbCommon.AreaSrvInfo
func (*GetAllAreaRsp) ProtoMessage ¶
func (*GetAllAreaRsp) ProtoMessage()
func (*GetAllAreaRsp) Reset ¶
func (m *GetAllAreaRsp) Reset()
func (*GetAllAreaRsp) String ¶
func (m *GetAllAreaRsp) String() string
type LogonReq ¶
type LogonReq struct { Username *string `protobuf:"bytes,1,req,name=username" json:"username,omitempty"` Aid *int32 `protobuf:"zigzag32,2,req,name=aid" json:"aid,omitempty"` Sid *int32 `protobuf:"zigzag32,3,req,name=sid" json:"sid,omitempty"` Role *string `protobuf:"bytes,4,req,name=role" json:"role,omitempty"` Roleid *uint64 `protobuf:"varint,5,req,name=roleid" json:"roleid,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*LogonReq) GetUsername ¶
func (*LogonReq) ProtoMessage ¶
func (*LogonReq) ProtoMessage()
type LogonRsp ¶
type LogonRsp struct { GsIp *string `protobuf:"bytes,1,req,name=gs_ip" json:"gs_ip,omitempty"` GsPort *int32 `protobuf:"zigzag32,2,req,name=gs_port" json:"gs_port,omitempty"` GsId *int64 `protobuf:"zigzag64,3,req,name=gs_id" json:"gs_id,omitempty"` Key []byte `protobuf:"bytes,4,req,name=key" json:"key,omitempty"` Resv *int32 `protobuf:"zigzag32,5,opt,name=resv" json:"resv,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*LogonRsp) ProtoMessage ¶
func (*LogonRsp) ProtoMessage()
type VerifyReq ¶
type VerifyReq struct { Platform *string `protobuf:"bytes,1,req,name=platform" json:"platform,omitempty"` Username *string `protobuf:"bytes,2,req,name=username" json:"username,omitempty"` ThirdKey *string `protobuf:"bytes,3,req,name=third_key" json:"third_key,omitempty"` Resv *int32 `protobuf:"zigzag32,4,opt,name=resv" json:"resv,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*VerifyReq) GetPlatform ¶
func (*VerifyReq) GetThirdKey ¶
func (*VerifyReq) GetUsername ¶
func (*VerifyReq) ProtoMessage ¶
func (*VerifyReq) ProtoMessage()
type VerifyRsp ¶
type VerifyRsp struct { Roles []*onlineproto.AccountInfo `protobuf:"bytes,1,rep,name=roles" json:"roles,omitempty"` AllAddrs []*PbCommon.AreaSrvInfo `protobuf:"bytes,2,rep,name=all_addrs" json:"all_addrs,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*VerifyRsp) GetAllAddrs ¶
func (m *VerifyRsp) GetAllAddrs() []*PbCommon.AreaSrvInfo
func (*VerifyRsp) GetRoles ¶
func (m *VerifyRsp) GetRoles() []*onlineproto.AccountInfo
func (*VerifyRsp) ProtoMessage ¶
func (*VerifyRsp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.