pb

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PlayerAttribute_name = map[int32]string{
		0: "AA_AttributeNone",
	}
	PlayerAttribute_value = map[string]int32{
		"AA_AttributeNone": 0,
	}
)

Enum value maps for PlayerAttribute.

View Source
var (
	NodeState_name = map[int32]string{
		0: "Open",
		1: "Maintain",
		2: "Closed",
	}
	NodeState_value = map[string]int32{
		"Open":     0,
		"Maintain": 1,
		"Closed":   2,
	}
)

Enum value maps for NodeState.

View Source
var File_base_error_proto protoreflect.FileDescriptor
View Source
var File_base_type_proto protoreflect.FileDescriptor
View Source
var File_login_proto protoreflect.FileDescriptor
View Source
var File_player_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Bool) Descriptor deprecated

func (*Bool) Descriptor() ([]byte, []int)

Deprecated: Use Bool.ProtoReflect.Descriptor instead.

func (*Bool) GetValue

func (x *Bool) GetValue() bool

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) ProtoReflect

func (x *Bool) ProtoReflect() protoreflect.Message

func (*Bool) Reset

func (x *Bool) Reset()

func (*Bool) String

func (x *Bool) String() string

type DevRegister

type DevRegister struct {
	AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` // 帐号名
	Password    string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`       // 密码
	Ip          string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`                   // ip地址
	// contains filtered or unexported fields
}

注册开发帐号

func (*DevRegister) Descriptor deprecated

func (*DevRegister) Descriptor() ([]byte, []int)

Deprecated: Use DevRegister.ProtoReflect.Descriptor instead.

func (*DevRegister) GetAccountName

func (x *DevRegister) GetAccountName() string

func (*DevRegister) GetIp

func (x *DevRegister) GetIp() string

func (*DevRegister) GetPassword

func (x *DevRegister) GetPassword() string

func (*DevRegister) ProtoMessage

func (*DevRegister) ProtoMessage()

func (*DevRegister) ProtoReflect

func (x *DevRegister) ProtoReflect() protoreflect.Message

func (*DevRegister) Reset

func (x *DevRegister) Reset()

func (*DevRegister) String

func (x *DevRegister) String() string

type Double

type Double struct {
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Double) Descriptor deprecated

func (*Double) Descriptor() ([]byte, []int)

Deprecated: Use Double.ProtoReflect.Descriptor instead.

func (*Double) GetValue

func (x *Double) GetValue() float64

func (*Double) ProtoMessage

func (*Double) ProtoMessage()

func (*Double) ProtoReflect

func (x *Double) ProtoReflect() protoreflect.Message

func (*Double) Reset

func (x *Double) Reset()

func (*Double) String

func (x *Double) String() string

type ErrorResponse

type ErrorResponse struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 错误码
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 错误内容
	// contains filtered or unexported fields
}

响应错误 当客户端发送Request类型消息时,如果有异常则返回ErrorResponse 踢下线协议也会用到该结构

func (*ErrorResponse) Descriptor deprecated

func (*ErrorResponse) Descriptor() ([]byte, []int)

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetCode

func (x *ErrorResponse) GetCode() int32

func (*ErrorResponse) GetMessage

func (x *ErrorResponse) GetMessage() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

func (x *ErrorResponse) ProtoReflect() protoreflect.Message

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

type Int32

type Int32 struct {
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32) Descriptor deprecated

func (*Int32) Descriptor() ([]byte, []int)

Deprecated: Use Int32.ProtoReflect.Descriptor instead.

func (*Int32) GetValue

func (x *Int32) GetValue() int32

func (*Int32) ProtoMessage

func (*Int32) ProtoMessage()

func (*Int32) ProtoReflect

func (x *Int32) ProtoReflect() protoreflect.Message

func (*Int32) Reset

func (x *Int32) Reset()

func (*Int32) String

func (x *Int32) String() string

type Int32Int32

type Int32Int32 struct {
	Key   int32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32Int32) Descriptor deprecated

func (*Int32Int32) Descriptor() ([]byte, []int)

Deprecated: Use Int32Int32.ProtoReflect.Descriptor instead.

func (*Int32Int32) GetKey

func (x *Int32Int32) GetKey() int32

func (*Int32Int32) GetValue

func (x *Int32Int32) GetValue() int32

func (*Int32Int32) ProtoMessage

func (*Int32Int32) ProtoMessage()

func (*Int32Int32) ProtoReflect

func (x *Int32Int32) ProtoReflect() protoreflect.Message

func (*Int32Int32) Reset

func (x *Int32Int32) Reset()

func (*Int32Int32) String

func (x *Int32Int32) String() string

type Int32Int64

type Int32Int64 struct {
	Key   int32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32Int64) Descriptor deprecated

func (*Int32Int64) Descriptor() ([]byte, []int)

Deprecated: Use Int32Int64.ProtoReflect.Descriptor instead.

func (*Int32Int64) GetKey

func (x *Int32Int64) GetKey() int32

func (*Int32Int64) GetValue

func (x *Int32Int64) GetValue() int64

func (*Int32Int64) ProtoMessage

func (*Int32Int64) ProtoMessage()

func (*Int32Int64) ProtoReflect

func (x *Int32Int64) ProtoReflect() protoreflect.Message

func (*Int32Int64) Reset

func (x *Int32Int64) Reset()

func (*Int32Int64) String

func (x *Int32Int64) String() string

type Int32Int64Map

type Int32Int64Map struct {
	Value map[int32]int64 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Int32Int64Map) Descriptor deprecated

func (*Int32Int64Map) Descriptor() ([]byte, []int)

Deprecated: Use Int32Int64Map.ProtoReflect.Descriptor instead.

func (*Int32Int64Map) GetValue

func (x *Int32Int64Map) GetValue() map[int32]int64

func (*Int32Int64Map) ProtoMessage

func (*Int32Int64Map) ProtoMessage()

func (*Int32Int64Map) ProtoReflect

func (x *Int32Int64Map) ProtoReflect() protoreflect.Message

func (*Int32Int64Map) Reset

func (x *Int32Int64Map) Reset()

func (*Int32Int64Map) String

func (x *Int32Int64Map) String() string

type Int32List

type Int32List struct {
	List []int32 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32List) Descriptor deprecated

func (*Int32List) Descriptor() ([]byte, []int)

Deprecated: Use Int32List.ProtoReflect.Descriptor instead.

func (*Int32List) GetList

func (x *Int32List) GetList() []int32

func (*Int32List) ProtoMessage

func (*Int32List) ProtoMessage()

func (*Int32List) ProtoReflect

func (x *Int32List) ProtoReflect() protoreflect.Message

func (*Int32List) Reset

func (x *Int32List) Reset()

func (*Int32List) String

func (x *Int32List) String() string

type Int32Map

type Int32Map struct {
	Value map[int32]int32 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Int32Map) Descriptor deprecated

func (*Int32Map) Descriptor() ([]byte, []int)

Deprecated: Use Int32Map.ProtoReflect.Descriptor instead.

func (*Int32Map) GetValue

func (x *Int32Map) GetValue() map[int32]int32

func (*Int32Map) ProtoMessage

func (*Int32Map) ProtoMessage()

func (*Int32Map) ProtoReflect

func (x *Int32Map) ProtoReflect() protoreflect.Message

func (*Int32Map) Reset

func (x *Int32Map) Reset()

func (*Int32Map) String

func (x *Int32Map) String() string

type Int64

type Int64 struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64) Descriptor deprecated

func (*Int64) Descriptor() ([]byte, []int)

Deprecated: Use Int64.ProtoReflect.Descriptor instead.

func (*Int64) GetValue

func (x *Int64) GetValue() int64

func (*Int64) ProtoMessage

func (*Int64) ProtoMessage()

func (*Int64) ProtoReflect

func (x *Int64) ProtoReflect() protoreflect.Message

func (*Int64) Reset

func (x *Int64) Reset()

func (*Int64) String

func (x *Int64) String() string

type Int64Int32

type Int64Int32 struct {
	Key   int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64Int32) Descriptor deprecated

func (*Int64Int32) Descriptor() ([]byte, []int)

Deprecated: Use Int64Int32.ProtoReflect.Descriptor instead.

func (*Int64Int32) GetKey

func (x *Int64Int32) GetKey() int64

func (*Int64Int32) GetValue

func (x *Int64Int32) GetValue() int32

func (*Int64Int32) ProtoMessage

func (*Int64Int32) ProtoMessage()

func (*Int64Int32) ProtoReflect

func (x *Int64Int32) ProtoReflect() protoreflect.Message

func (*Int64Int32) Reset

func (x *Int64Int32) Reset()

func (*Int64Int32) String

func (x *Int64Int32) String() string

type Int64Int64

type Int64Int64 struct {
	Key   int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64Int64) Descriptor deprecated

func (*Int64Int64) Descriptor() ([]byte, []int)

Deprecated: Use Int64Int64.ProtoReflect.Descriptor instead.

func (*Int64Int64) GetKey

func (x *Int64Int64) GetKey() int64

func (*Int64Int64) GetValue

func (x *Int64Int64) GetValue() int64

func (*Int64Int64) ProtoMessage

func (*Int64Int64) ProtoMessage()

func (*Int64Int64) ProtoReflect

func (x *Int64Int64) ProtoReflect() protoreflect.Message

func (*Int64Int64) Reset

func (x *Int64Int64) Reset()

func (*Int64Int64) String

func (x *Int64Int64) String() string

type Int64List

type Int64List struct {
	List []int64 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64List) Descriptor deprecated

func (*Int64List) Descriptor() ([]byte, []int)

Deprecated: Use Int64List.ProtoReflect.Descriptor instead.

func (*Int64List) GetList

func (x *Int64List) GetList() []int64

func (*Int64List) ProtoMessage

func (*Int64List) ProtoMessage()

func (*Int64List) ProtoReflect

func (x *Int64List) ProtoReflect() protoreflect.Message

func (*Int64List) Reset

func (x *Int64List) Reset()

func (*Int64List) String

func (x *Int64List) String() string

type LoginRequest

type LoginRequest struct {
	ServerId int32            `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 当前登陆的服务器id
	Token    string           `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`        // 登陆token(web login api生成的base64字符串)
	Params   map[int32]string ``                                                                       // 登陆时上传的参数 key: LoginParams
	/* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

登陆请求(建立连接后的第一条消息,验证通过后则进行后续流程)

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetParams

func (x *LoginRequest) GetParams() map[int32]string

func (*LoginRequest) GetServerId

func (x *LoginRequest) GetServerId() int32

func (*LoginRequest) GetToken

func (x *LoginRequest) GetToken() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Uid    int64            `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`      // 游戏内的用户唯一id
	Pid    int32            `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`      // 平台id
	OpenId string           `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId,omitempty"` // 平台openId(平台的帐号唯一id)
	Params map[int32]string ``                                                                  // 登陆后的扩展参数,按需增加
	/* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

登陆响应

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetOpenId

func (x *LoginResponse) GetOpenId() string

func (*LoginResponse) GetParams

func (x *LoginResponse) GetParams() map[int32]string

func (*LoginResponse) GetPid

func (x *LoginResponse) GetPid() int32

func (*LoginResponse) GetUid

func (x *LoginResponse) GetUid() int64

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type NodeState

type NodeState int32

节点状态

const (
	NodeState_Open     NodeState = 0 // 开放状态,所有角色可以进入
	NodeState_Maintain NodeState = 1 // 维护状态,白名单角色可以进入
	NodeState_Closed   NodeState = 2 // 关闭状态,所有角色不可进入(同时踢除所有角色)
)

func (NodeState) Descriptor

func (NodeState) Descriptor() protoreflect.EnumDescriptor

func (NodeState) Enum

func (x NodeState) Enum() *NodeState

func (NodeState) EnumDescriptor deprecated

func (NodeState) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeState.Descriptor instead.

func (NodeState) Number

func (x NodeState) Number() protoreflect.EnumNumber

func (NodeState) String

func (x NodeState) String() string

func (NodeState) Type

type None

type None struct {
	// contains filtered or unexported fields
}

func (*None) Descriptor deprecated

func (*None) Descriptor() ([]byte, []int)

Deprecated: Use None.ProtoReflect.Descriptor instead.

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) ProtoReflect

func (x *None) ProtoReflect() protoreflect.Message

func (*None) Reset

func (x *None) Reset()

func (*None) String

func (x *None) String() string

type Player

type Player struct {
	PlayerId   int64  `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"`     // 玩家ID
	PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"`  // 玩家昵称
	Gender     int32  `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"`         // 角色性别
	Level      int32  `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`           // 角色等级
	CreateTime int64  `protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"` // 创建时间
	Exp        int64  `protobuf:"varint,6,opt,name=exp,proto3" json:"exp,omitempty"`               // 经验值
	// contains filtered or unexported fields
}

玩家基本信息

func (*Player) Descriptor deprecated

func (*Player) Descriptor() ([]byte, []int)

Deprecated: Use Player.ProtoReflect.Descriptor instead.

func (*Player) GetCreateTime

func (x *Player) GetCreateTime() int64

func (*Player) GetExp

func (x *Player) GetExp() int64

func (*Player) GetGender

func (x *Player) GetGender() int32

func (*Player) GetLevel

func (x *Player) GetLevel() int32

func (*Player) GetPlayerId

func (x *Player) GetPlayerId() int64

func (*Player) GetPlayerName

func (x *Player) GetPlayerName() string

func (*Player) ProtoMessage

func (*Player) ProtoMessage()

func (*Player) ProtoReflect

func (x *Player) ProtoReflect() protoreflect.Message

func (*Player) Reset

func (x *Player) Reset()

func (*Player) String

func (x *Player) String() string

type PlayerAttribute

type PlayerAttribute int32

玩家属性变化

const (
	PlayerAttribute_AA_AttributeNone PlayerAttribute = 0 // 未使用
)

func (PlayerAttribute) Descriptor

func (PlayerAttribute) Enum

func (x PlayerAttribute) Enum() *PlayerAttribute

func (PlayerAttribute) EnumDescriptor deprecated

func (PlayerAttribute) EnumDescriptor() ([]byte, []int)

Deprecated: Use PlayerAttribute.Descriptor instead.

func (PlayerAttribute) Number

func (PlayerAttribute) String

func (x PlayerAttribute) String() string

func (PlayerAttribute) Type

type PlayerCreateRequest

type PlayerCreateRequest struct {
	PlayerName string `protobuf:"bytes,1,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家昵称
	Gender     int32  `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty"`        // 性别(0女,1男)
	// contains filtered or unexported fields
}

请求创建角色

func (*PlayerCreateRequest) Descriptor deprecated

func (*PlayerCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use PlayerCreateRequest.ProtoReflect.Descriptor instead.

func (*PlayerCreateRequest) GetGender

func (x *PlayerCreateRequest) GetGender() int32

func (*PlayerCreateRequest) GetPlayerName

func (x *PlayerCreateRequest) GetPlayerName() string

func (*PlayerCreateRequest) ProtoMessage

func (*PlayerCreateRequest) ProtoMessage()

func (*PlayerCreateRequest) ProtoReflect

func (x *PlayerCreateRequest) ProtoReflect() protoreflect.Message

func (*PlayerCreateRequest) Reset

func (x *PlayerCreateRequest) Reset()

func (*PlayerCreateRequest) String

func (x *PlayerCreateRequest) String() string

type PlayerCreateResponse

type PlayerCreateResponse struct {
	Player *Player `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // 玩家信息
	// contains filtered or unexported fields
}

创建角色回应

func (*PlayerCreateResponse) Descriptor deprecated

func (*PlayerCreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlayerCreateResponse.ProtoReflect.Descriptor instead.

func (*PlayerCreateResponse) GetPlayer

func (x *PlayerCreateResponse) GetPlayer() *Player

func (*PlayerCreateResponse) ProtoMessage

func (*PlayerCreateResponse) ProtoMessage()

func (*PlayerCreateResponse) ProtoReflect

func (x *PlayerCreateResponse) ProtoReflect() protoreflect.Message

func (*PlayerCreateResponse) Reset

func (x *PlayerCreateResponse) Reset()

func (*PlayerCreateResponse) String

func (x *PlayerCreateResponse) String() string

type PlayerEnterResponse

type PlayerEnterResponse struct {
	GuideMaps map[int32]int32 `` // 新手引导记录列表
	/* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

进入游戏响应

func (*PlayerEnterResponse) Descriptor deprecated

func (*PlayerEnterResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlayerEnterResponse.ProtoReflect.Descriptor instead.

func (*PlayerEnterResponse) GetGuideMaps

func (x *PlayerEnterResponse) GetGuideMaps() map[int32]int32

func (*PlayerEnterResponse) ProtoMessage

func (*PlayerEnterResponse) ProtoMessage()

func (*PlayerEnterResponse) ProtoReflect

func (x *PlayerEnterResponse) ProtoReflect() protoreflect.Message

func (*PlayerEnterResponse) Reset

func (x *PlayerEnterResponse) Reset()

func (*PlayerEnterResponse) String

func (x *PlayerEnterResponse) String() string

type PlayerSelectResponse

type PlayerSelectResponse struct {
	List []*Player `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 玩家列表
	// contains filtered or unexported fields
}

查询角色响应

func (*PlayerSelectResponse) Descriptor deprecated

func (*PlayerSelectResponse) Descriptor() ([]byte, []int)

Deprecated: Use PlayerSelectResponse.ProtoReflect.Descriptor instead.

func (*PlayerSelectResponse) GetList

func (x *PlayerSelectResponse) GetList() []*Player

func (*PlayerSelectResponse) ProtoMessage

func (*PlayerSelectResponse) ProtoMessage()

func (*PlayerSelectResponse) ProtoReflect

func (x *PlayerSelectResponse) ProtoReflect() protoreflect.Message

func (*PlayerSelectResponse) Reset

func (x *PlayerSelectResponse) Reset()

func (*PlayerSelectResponse) String

func (x *PlayerSelectResponse) String() string

type String

type String struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*String) Descriptor deprecated

func (*String) Descriptor() ([]byte, []int)

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

func (x *String) ProtoReflect() protoreflect.Message

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type StringKeyValue

type StringKeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringKeyValue) Descriptor deprecated

func (*StringKeyValue) Descriptor() ([]byte, []int)

Deprecated: Use StringKeyValue.ProtoReflect.Descriptor instead.

func (*StringKeyValue) GetKey

func (x *StringKeyValue) GetKey() string

func (*StringKeyValue) GetValue

func (x *StringKeyValue) GetValue() string

func (*StringKeyValue) ProtoMessage

func (*StringKeyValue) ProtoMessage()

func (*StringKeyValue) ProtoReflect

func (x *StringKeyValue) ProtoReflect() protoreflect.Message

func (*StringKeyValue) Reset

func (x *StringKeyValue) Reset()

func (*StringKeyValue) String

func (x *StringKeyValue) String() string

type User

type User struct {
	SdkId    int32  `protobuf:"varint,1,opt,name=sdkId,proto3" json:"sdkId,omitempty"`       // sdk id
	Pid      int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`           // 包id
	OpenId   string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId,omitempty"`      // sdk的openid
	ServerId int32  `protobuf:"varint,4,opt,name=serverId,proto3" json:"serverId,omitempty"` // 所在游戏服id
	Uid      int64  `protobuf:"varint,5,opt,name=uid,proto3" json:"uid,omitempty"`           // 用户id
	Ip       string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`              // 请求ip
	// contains filtered or unexported fields
}

用户信息

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetIp

func (x *User) GetIp() string

func (*User) GetOpenId

func (x *User) GetOpenId() string

func (*User) GetPid

func (x *User) GetPid() int32

func (*User) GetSdkId

func (x *User) GetSdkId() int32

func (*User) GetServerId

func (x *User) GetServerId() int32

func (*User) GetUid

func (x *User) GetUid() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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