models

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: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	Name       string
	ID         string
	Promotions []string
}

City represents city

type Gpa

type Gpa struct {
	Value string `json:"gpa"`
	Cycle string `json:"cycle"`
}

Gpa represents the gpa data

type ProfileData

type ProfileData struct {
	Gpa []Gpa `json:"gpa"`
}

ProfileData represents the json get on profile

type Student

type Student struct {
	Name      string  `json:"title"`
	Login     string  `json:"login"`
	Bachelor  float64 `json:"bachelor"`
	Master    float64 `json:"master"`
	City      string  `json:"city"`
	Promotion string  `json:"promotion"`
	Position  int     `json:"-"`
}

Student represents the user struct

func (Student) GpaToShow

func (s Student) GpaToShow() float64

GpaToShow returns which gpa we must show for webpage

type Yearbook

type Yearbook struct {
	TotalStudents int       `json:"total"`
	Students      []Student `json:"items"`
}

Yearbook represent data returned from yearbook requests

Jump to

Keyboard shortcuts

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