ranking

package
v0.0.0-...-91e90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DB instance
	DB *sql.DB

	// LastRankUpdate is when the rank was updated
	LastRankUpdate time.Time
)

Functions

func Authentication

func Authentication(authentication *config.Authentication) error

Authentication connects current user to retrieve its token

func InitRanking

func InitRanking(db *sql.DB) error

InitRanking inits students ranking

func RequestAllData

func RequestAllData(token string) ([]models.Student, error)

RequestAllData start getting all ranking data

func UpdateRanking

func UpdateRanking() error

UpdateRanking updates students ranking data

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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