tekleader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Current Version of tekleader

Variables

View Source
var (
	// AuthKey represents the auth token
	AuthKey string
	// Race represents the boolean to active/disable race conditon
	Race bool
	// Location represents the promotion location you want sort
	Location string
	// Promo represents the promotion you want sort
	Promo string
	// Course represents the course of the student
	Course string
)
View Source
var Timeout int

Functions

func Auth

func Auth() error

Check if AuthKey is valid

func PrintLeader

func PrintLeader(students *SortStudents)

func PrintStatus

func PrintStatus(persistent bool)

Types

type Promotion

type Promotion struct {
	Items []struct {
		Title    string `json:"title"`
		Login    string `json:"login"`
		Nom      string `json:"nom"`
		Prenom   string `json:"prenom"`
		Location string `json:"location"`
	} `json:"items"`
	Total int `json:"total"`
}

func AppendPromotion

func AppendPromotion() *Promotion

AppendPromotion fetch students obstruct API offset

type SortStudent

type SortStudent struct {
	Login string
	Gpa   string
}

type SortStudents

type SortStudents []SortStudent

func SortPromotion

func SortPromotion() *SortStudents

func (SortStudents) Len

func (gpa SortStudents) Len() int

Collection of methods that satisfies sort.Interface

func (SortStudents) Less

func (gpa SortStudents) Less(i, j int) bool

func (SortStudents) Swap

func (gpa SortStudents) Swap(i, j int)

type Student

type Student struct {
	Login    string `json:"login"`
	Title    string `json:"title"`
	Promo    int    `json:"promo"`
	Location string `json:"location"`
	Credits  int    `json:"credits"`
	Gpa      []struct {
		Gpa   string `json:"gpa"`
		Cycle string `json:"cycle"`
	} `json:"gpa"`
}

func GetStudent

func GetStudent(login string) *Student

type Students

type Students []Student

func GetStudents

func GetStudents(logins []string) *Students

Jump to

Keyboard shortcuts

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