Documentation ¶
Index ¶
- Variables
- type RankData
- func (*RankData) Descriptor() ([]byte, []int)deprecated
- func (x *RankData) GetMembers() []*RankMember
- func (x *RankData) GetRankID() uint32
- func (*RankData) ProtoMessage()
- func (x *RankData) ProtoReflect() protoreflect.Message
- func (x *RankData) Reset()
- func (x *RankData) String() string
- func (m *RankData) Validate() error
- type RankDataValidationError
- type RankMember
- func (*RankMember) Descriptor() ([]byte, []int)deprecated
- func (x *RankMember) GetHead() uint32
- func (x *RankMember) GetHeadFrame() uint32
- func (x *RankMember) GetIndex() int64
- func (x *RankMember) GetName() string
- func (x *RankMember) GetPlayerId() uint64
- func (x *RankMember) GetScore() int64
- func (*RankMember) ProtoMessage()
- func (x *RankMember) ProtoReflect() protoreflect.Message
- func (x *RankMember) Reset()
- func (x *RankMember) String() string
- func (m *RankMember) Validate() error
- type RankMemberValidationError
Constants ¶
This section is empty.
Variables ¶
var File_rank_proto protoreflect.FileDescriptor
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) GetMembers ¶
func (x *RankData) GetMembers() []*RankMember
func (*RankData) ProtoMessage ¶
func (*RankData) ProtoMessage()
func (*RankData) ProtoReflect ¶
func (x *RankData) ProtoReflect() protoreflect.Message
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 ¶
func (e RankMemberValidationError) Error() string
Error satisfies the builtin error interface
func (RankMemberValidationError) ErrorName ¶
func (e RankMemberValidationError) ErrorName() string
ErrorName returns error name.
func (RankMemberValidationError) Field ¶
func (e RankMemberValidationError) Field() string
Field function returns field value.
func (RankMemberValidationError) Key ¶
func (e RankMemberValidationError) Key() bool
Key function returns key value.
func (RankMemberValidationError) Reason ¶
func (e RankMemberValidationError) Reason() string
Reason function returns reason value.