Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string // contains filtered or unexported fields }
func (*Client) Authenticate ¶
func (*Client) GetNetsoul ¶
func (client *Client) GetNetsoul(login string) ([]NetsoulPeriod, error)
type Netsoul ¶
type Netsoul []NetsoulPeriod
type NetsoulPeriod ¶
type NetsoulPeriod struct { Timestamp float64 SecondsActive float64 SecondsIdle float64 SecondsOutActive float64 SecondsOutIdle float64 Norm float64 }
func (*NetsoulPeriod) UnmarshalJSON ¶
func (netsoul *NetsoulPeriod) UnmarshalJSON(data []byte) (err error)
type User ¶
type User struct { Login string `json:"login"` FullName string `json:"title"` Email string `json:"internal_email"` LastName string `json:"lastname"` FirstName string `json:"firstname"` UserInfo map[string]UserInfo `json:"userinfo"` AvatarURL string `json:"picture"` Promotion float64 `json:"promo"` Semester float64 `json:"semester"` UID float64 `json:"uid"` GID float64 `json:"gid"` Location string `json:"location"` Closed bool `json:"close"` PromoID string `json:"id_promo"` HistoryID string `json:"id_history"` CourseCode string `json:"course_code"` SemesterCode string `json:"semester_code"` SchoolID string `json:"school_id"` SchoolCode string `json:"school_code"` SchoolTitle string `json:"school_title"` PreviousPromoID string `json:"old_id_promo"` PreviousLocationId string `json:"old_id_location"` StudentYear float64 `json:"studentyear"` IsAdmin bool `json:"admin"` IsEditable bool `json:"editable"` Groups []UserGroup `json:"groups"` Credits float64 `json:"credits"` GPA []UserGPA `json:"gpa"` AverageGPA []UserAverageGPA `json:"average_gpa"` Spices float64 `json:"spice"` Netsoul UserNetsoul `json:"nsstat"` }
type UserAverageGPA ¶
Average Grade Point Average. This is some next level shit.
Click to show internal directories.
Click to hide internal directories.