Documentation ¶
Overview ¶
Package api provides entities for the appilcation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct { ID string `json:"id"` Name string `json:"name"` Group string `json:"group"` Year string `json:"year"` Results []Result `json:"results"` Total ResultInfo `json:"total"` Final string `json:"final"` }
Class is an entity for a class.
type CrawlerConfig ¶
type CrawlerConfig struct { UserID string `json:"userId"` Status bool `json:"status"` Code string `json:"code"` Nip string `json:"nip"` NotificationEmail string `json:"notificationEmail"` }
CrawlerConfig contains info about the crawler configuration.
type Result ¶
type Result struct { Name string `json:"name"` Normal ResultInfo `json:"normal"` Weighted ResultInfo `json:"weighted"` }
Result is an entity for storing a result
type ResultInfo ¶
type ResultInfo struct { Result string `json:"result"` Average string `json:"average"` StandardDev string `json:"standardDev"` }
ResultInfo contains normal or weighted grades.
Click to show internal directories.
Click to hide internal directories.