Documentation
¶
Overview ¶
Package workload calculates academic credits from institution-mapped Moodle course custom fields.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidationError ¶
ValidationError explains why --require-minimum failed.
Types ¶
type Backend ¶
type Backend interface {
Name() site.BackendKind
Requirement() site.Requirement
Courses(context.Context, string, config.Academic) ([]Course, error)
}
Backend reads enrolled courses and their custom fields.
type Course ¶
type Course struct {
ID string
ShortName string
FullName string
Credits *float64
Level string
Term string
Missing []string
}
Course is one enrolled course and the academic metadata Moodle exposed.
type Group ¶
type Group struct {
Term string
Level string
Credits float64
Minimum float64
MeetsMinimum bool
Complete bool
Courses []Course
}
Group is one term and academic level, which have one applicable minimum.
type Result ¶
type Result struct {
Groups []Group
AllMeet bool
Provenance site.Provenance
}
Result is a workload calculation plus provenance.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service calculates workload without knowing how Moodle was queried.