Documentation
¶
Index ¶
- Variables
- func FetchCourses(daoWrapper dao.DaoWrapper) func()
- func FindStudentsForCourses(courses []model.Course, usersDao dao.UsersDao)
- func FindUserWithEmail(email string) (*model.User, error)
- func GetCurrentSemester() (year int, term string)
- func GetEventsForCourses(courses []model.Course, daoWrapper dao.DaoWrapper)
- func PrefetchCourses(dao dao.DaoWrapper) func()
- type Catalog
- type Event
- type LdapResp
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLdapBadAuth = errors.New("login failed")
Functions ¶
func FetchCourses ¶
func FetchCourses(daoWrapper dao.DaoWrapper) func()
FetchCourses updates the enrollments of all relevant courses
func FindStudentsForCourses ¶
func GetCurrentSemester ¶
func GetEventsForCourses ¶
func GetEventsForCourses(courses []model.Course, daoWrapper dao.DaoWrapper)
func PrefetchCourses ¶
func PrefetchCourses(dao dao.DaoWrapper) func()
PrefetchCourses loads all courses from tumonline, so we can use them in the course creation from search
Types ¶
type Catalog ¶ added in v1.9.0
type Catalog struct {
Dao dao.DaoWrapper
}
Catalog is TUMOnline as the course creation page uses it: the course list PrefetchCourses copies into the search backend, and the lectures and enrolments fetched for a course once it exists.
func (Catalog) SearchCourses ¶ added in v1.9.0
SearchCourses searches the courses PrefetchCourses stored, as v1's searchCourse did.
func (Catalog) SyncCourse ¶ added in v1.9.0
SyncCourse fetches a new course's lectures and enrolments from TUMOnline in the background, and refreshes the courses it knows of, as v1's createCourse did.
Click to show internal directories.
Click to hide internal directories.