rank

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheKeyRankForTeam    = "rankForTeam"
	CacheKeyRankForManager = "rankForManager"
	CacheKeyRankTitle      = "rankTitle"
)

Variables

This section is empty.

Functions

func ForManager

func ForManager() []*db.RankItem

ForManager returns ranking list for team account from the cache. It contains all the challenges.

func ForTeam

func ForTeam() []*db.RankItem

ForTeam returns ranking list for team account from the cache. It only contains the challenges which are visible to teams.

func SetRankList

func SetRankList(ctx context.Context) error

SetRankList calculates the ranking list for teams and managers.

func SetTitle

func SetTitle(ctx context.Context) error

SetTitle saves the visible challenges' headers into cache.

func Title

func Title() []string

Title returns the ranking list table header from the cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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