leaderboard

package
v0.0.0-...-66adcdc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Period_name = map[int32]string{
		0: "ALL_TIME",
		1: "DAY",
		2: "WEEK",
		3: "MONTH",
	}
	Period_value = map[string]int32{
		"ALL_TIME": 0,
		"DAY":      1,
		"WEEK":     2,
		"MONTH":    3,
	}
)

Enum value maps for Period.

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

Enum value maps for SortOrder.

View Source
var File_leaderboards_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 Period

type Period int32
const (
	Period_ALL_TIME Period = 0
	Period_DAY      Period = 1
	Period_WEEK     Period = 2
	Period_MONTH    Period = 3
)

func (Period) Descriptor

func (Period) Descriptor() protoreflect.EnumDescriptor

func (Period) Enum

func (x Period) Enum() *Period

func (Period) EnumDescriptor deprecated

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

Deprecated: Use Period.Descriptor instead.

func (Period) Number

func (x Period) Number() protoreflect.EnumNumber

func (Period) String

func (x Period) String() string

func (Period) Type

func (Period) Type() protoreflect.EnumType

type SortOrder

type SortOrder int32
const (
	SortOrder_ASC  SortOrder = 0
	SortOrder_DESC 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