PbLogin

package
v0.0.0-...-6d7b369 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

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) Enum

func (x Command) Enum() *Command

func (Command) String

func (x Command) String() string

func (*Command) UnmarshalJSON

func (x *Command) UnmarshalJSON(data []byte) error

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) GetAid

func (m *CreateReq) GetAid() int32

func (*CreateReq) GetExtend

func (m *CreateReq) GetExtend() []byte

func (*CreateReq) GetRole

func (m *CreateReq) GetRole() string

func (*CreateReq) GetSid

func (m *CreateReq) GetSid() int32

func (*CreateReq) GetUsername

func (m *CreateReq) GetUsername() string

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) Reset

func (m *CreateReq) Reset()

func (*CreateReq) String

func (m *CreateReq) String() string

type CreateRsp

type CreateRsp struct {
	Roleid           *uint64 `protobuf:"varint,1,req,name=roleid" json:"roleid,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*CreateRsp) GetRoleid

func (m *CreateRsp) GetRoleid() uint64

func (*CreateRsp) ProtoMessage

func (*CreateRsp) ProtoMessage()

func (*CreateRsp) Reset

func (m *CreateRsp) Reset()

func (*CreateRsp) String

func (m *CreateRsp) String() string

type Errcode

type Errcode int32
const (
	Errcode_ERR_INTER           Errcode = 10401
	Errcode_ERR_VERIFY_ERR      Errcode = 10402
	Errcode_ERR_INVALID_PARAM   Errcode = 10403
	Errcode_ERR_TIMEOUT         Errcode = 10404
	Errcode_ERR_HANDLE_LAST_REQ Errcode = 10405
)

func (Errcode) Enum

func (x Errcode) Enum() *Errcode

func (Errcode) String

func (x Errcode) String() string

func (*Errcode) UnmarshalJSON

func (x *Errcode) UnmarshalJSON(data []byte) error

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) GetAid

func (m *LogonReq) GetAid() int32

func (*LogonReq) GetRole

func (m *LogonReq) GetRole() string

func (*LogonReq) GetRoleid

func (m *LogonReq) GetRoleid() uint64

func (*LogonReq) GetSid

func (m *LogonReq) GetSid() int32

func (*LogonReq) GetUsername

func (m *LogonReq) GetUsername() string

func (*LogonReq) ProtoMessage

func (*LogonReq) ProtoMessage()

func (*LogonReq) Reset

func (m *LogonReq) Reset()

func (*LogonReq) String

func (m *LogonReq) String() string

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) GetGsId

func (m *LogonRsp) GetGsId() int64

func (*LogonRsp) GetGsIp

func (m *LogonRsp) GetGsIp() string

func (*LogonRsp) GetGsPort

func (m *LogonRsp) GetGsPort() int32

func (*LogonRsp) GetKey

func (m *LogonRsp) GetKey() []byte

func (*LogonRsp) GetResv

func (m *LogonRsp) GetResv() int32

func (*LogonRsp) ProtoMessage

func (*LogonRsp) ProtoMessage()

func (*LogonRsp) Reset

func (m *LogonRsp) Reset()

func (*LogonRsp) String

func (m *LogonRsp) String() string

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 (m *VerifyReq) GetPlatform() string

func (*VerifyReq) GetResv

func (m *VerifyReq) GetResv() int32

func (*VerifyReq) GetThirdKey

func (m *VerifyReq) GetThirdKey() string

func (*VerifyReq) GetUsername

func (m *VerifyReq) GetUsername() string

func (*VerifyReq) ProtoMessage

func (*VerifyReq) ProtoMessage()

func (*VerifyReq) Reset

func (m *VerifyReq) Reset()

func (*VerifyReq) String

func (m *VerifyReq) String() string

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()

func (*VerifyRsp) Reset

func (m *VerifyRsp) Reset()

func (*VerifyRsp) String

func (m *VerifyRsp) String() string

Jump to

Keyboard shortcuts

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