leaderboard

package
v0.0.0-...-cd9d53d Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SortOrder_name = map[int32]string{
		0: "ASCENDING",
		1: "DESCENDING",
	}
	SortOrder_value = map[string]int32{
		"ASCENDING":  0,
		"DESCENDING": 1,
	}
)

Enum value maps for SortOrder.

View Source
var File_leaderboards_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Leaderboard

type Leaderboard struct {
	Id        string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SortOrder SortOrder `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Leaderboard) Descriptor deprecated

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

Deprecated: Use Leaderboard.ProtoReflect.Descriptor instead.

func (*Leaderboard) GetId

func (x *Leaderboard) GetId() string

func (*Leaderboard) GetSortOrder

func (x *Leaderboard) GetSortOrder() SortOrder

func (*Leaderboard) ProtoMessage

func (*Leaderboard) ProtoMessage()

func (*Leaderboard) ProtoReflect

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

func (*Leaderboard) Reset

func (x *Leaderboard) Reset()

func (*Leaderboard) String

func (x *Leaderboard) String() string

type LeaderboardEntry

type LeaderboardEntry struct {
	Id    string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Score float64               `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
	Rank  uint32                `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
	Data  map[string]*anypb.Any `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LeaderboardEntry) Descriptor deprecated

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

Deprecated: Use LeaderboardEntry.ProtoReflect.Descriptor instead.

func (*LeaderboardEntry) GetData

func (x *LeaderboardEntry) GetData() map[string]*anypb.Any

func (*LeaderboardEntry) GetId

func (x *LeaderboardEntry) GetId() string

func (*LeaderboardEntry) GetRank

func (x *LeaderboardEntry) GetRank() uint32

func (*LeaderboardEntry) GetScore

func (x *LeaderboardEntry) GetScore() float64

func (*LeaderboardEntry) ProtoMessage

func (*LeaderboardEntry) ProtoMessage()

func (*LeaderboardEntry) ProtoReflect

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

func (*LeaderboardEntry) Reset

func (x *LeaderboardEntry) Reset()

func (*LeaderboardEntry) String

func (x *LeaderboardEntry) String() string

type SortOrder

type SortOrder int32
const (
	SortOrder_ASCENDING  SortOrder = 0
	SortOrder_DESCENDING SortOrder = 1
)

func (SortOrder) Descriptor

func (SortOrder) Descriptor() protoreflect.EnumDescriptor

func (SortOrder) Enum

func (x SortOrder) Enum() *SortOrder

func (SortOrder) EnumDescriptor deprecated

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

Deprecated: Use SortOrder.Descriptor instead.

func (SortOrder) Number

func (x SortOrder) Number() protoreflect.EnumNumber

func (SortOrder) String

func (x SortOrder) String() string

func (SortOrder) Type

Jump to

Keyboard shortcuts

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