rank

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type RankData

type RankData struct {
	RankID  uint32        `protobuf:"varint,1,opt,name=rankID,proto3" json:"rankID,omitempty"`  // 排行榜ID
	Members []*RankMember `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` // 排行榜数据
	// contains filtered or unexported fields
}

func (*RankData) Descriptor deprecated

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

Deprecated: Use RankData.ProtoReflect.Descriptor instead.

func (*RankData) GetMembers

func (x *RankData) GetMembers() []*RankMember

func (*RankData) GetRankID

func (x *RankData) GetRankID() uint32

func (*RankData) ProtoMessage

func (*RankData) ProtoMessage()

func (*RankData) ProtoReflect

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

func (*RankData) Reset

func (x *RankData) Reset()

func (*RankData) String

func (x *RankData) String() string

func (*RankData) Validate

func (m *RankData) Validate() error

Validate checks the field values on RankData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RankDataValidationError

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

RankDataValidationError is the validation error returned by RankData.Validate if the designated constraints aren't met.

func (RankDataValidationError) Cause

func (e RankDataValidationError) Cause() error

Cause function returns cause value.

func (RankDataValidationError) Error

func (e RankDataValidationError) Error() string

Error satisfies the builtin error interface

func (RankDataValidationError) ErrorName

func (e RankDataValidationError) ErrorName() string

ErrorName returns error name.

func (RankDataValidationError) Field

func (e RankDataValidationError) Field() string

Field function returns field value.

func (RankDataValidationError) Key

func (e RankDataValidationError) Key() bool

Key function returns key value.

func (RankDataValidationError) Reason

func (e RankDataValidationError) Reason() string

Reason function returns reason value.

type RankMember

type RankMember struct {
	Index     int64  `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`         // 排名
	PlayerId  uint64 `protobuf:"varint,2,opt,name=playerId,proto3" json:"playerId,omitempty"`   // 玩家ID
	Score     int64  `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`         // 分数
	Name      string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`            // 昵称
	Head      uint32 `protobuf:"varint,5,opt,name=head,proto3" json:"head,omitempty"`           // 头像
	HeadFrame uint32 `protobuf:"varint,6,opt,name=headFrame,proto3" json:"headFrame,omitempty"` // 头像框
	// contains filtered or unexported fields
}

func (*RankMember) Descriptor deprecated

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

Deprecated: Use RankMember.ProtoReflect.Descriptor instead.

func (*RankMember) GetHead

func (x *RankMember) GetHead() uint32

func (*RankMember) GetHeadFrame

func (x *RankMember) GetHeadFrame() uint32

func (*RankMember) GetIndex

func (x *RankMember) GetIndex() int64

func (*RankMember) GetName

func (x *RankMember) GetName() string

func (*RankMember) GetPlayerId

func (x *RankMember) GetPlayerId() uint64

func (*RankMember) GetScore

func (x *RankMember) GetScore() int64

func (*RankMember) ProtoMessage

func (*RankMember) ProtoMessage()

func (*RankMember) ProtoReflect

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

func (*RankMember) Reset

func (x *RankMember) Reset()

func (*RankMember) String

func (x *RankMember) String() string

func (*RankMember) Validate

func (m *RankMember) Validate() error

Validate checks the field values on RankMember with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RankMemberValidationError

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

RankMemberValidationError is the validation error returned by RankMember.Validate if the designated constraints aren't met.

func (RankMemberValidationError) Cause

func (e RankMemberValidationError) Cause() error

Cause function returns cause value.

func (RankMemberValidationError) Error

Error satisfies the builtin error interface

func (RankMemberValidationError) ErrorName

func (e RankMemberValidationError) ErrorName() string

ErrorName returns error name.

func (RankMemberValidationError) Field

Field function returns field value.

func (RankMemberValidationError) Key

Key function returns key value.

func (RankMemberValidationError) Reason

func (e RankMemberValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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