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 CourseInfo
- 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 CourseInfo ¶
type CourseInfo struct { CourseName string `json:"courseName"` TumOnlineId string `json:"tumOnlineID"` NumberAttendees int `json:"numberAttendees"` TeachingTerm string `json:"teachingTerm"` TeachingTermFull string `json:"teachingTermFull"` }
func GetCourseInformation ¶
func GetCourseInformation(courseID string, token string) (CourseInfo, error)
Click to show internal directories.
Click to hide internal directories.