Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnknownReportCardStructure = errors.New("unknown report card structure")
)
Functions ¶
This section is empty.
Types ¶
type AbsenceReport ¶ added in v0.4.0
type AbsenceReport struct {
Student string `json:"student"`
Orientation string `json:"orientation"`
Courses []CourseAbsence `json:"courses"`
}
type ClassGrade ¶ added in v0.2.0
type ClassGrades ¶
type ClassGrades struct {
Name string `json:"name"`
GlobalMean string `json:"globalMean"`
HasExam bool `json:"hasExam"`
GradeGroups []*GradeGroup `json:"gradeGroups"`
}
type CourseAbsence ¶ added in v0.4.0
type CourseAbsence struct {
Name string `json:"name"`
Periods struct {
Ete int `json:"ete"`
Term1 int `json:"term1"`
Term2 int `json:"term2"`
Term3 int `json:"term3"`
Term4 int `json:"term4"`
} `json:"periods"`
Total int `json:"total"`
Justified int `json:"justified"`
RelativePeriods int `json:"relativePeriods"`
AbsolutePeriods int `json:"absolutePeriods"`
}
type GradeGroup ¶
type ModuleClass ¶ added in v0.2.0
type ModuleClass struct {
Identifier string `json:"id"`
Name string `json:"name"`
Grades []*ClassGrade `json:"grades"`
Mean string `json:"mean"`
Weight uint `json:"weight"`
}
type ModuleReport ¶ added in v0.2.0
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func FromString ¶
func (*Parser) Absences ¶ added in v0.4.0
func (s *Parser) Absences() (*AbsenceReport, error)
func (*Parser) Grades ¶
func (s *Parser) Grades() ([]*ClassGrades, error)
func (*Parser) ReportCard ¶ added in v0.2.0
func (s *Parser) ReportCard() ([]*ModuleReport, error)
Click to show internal directories.
Click to hide internal directories.