Documentation ¶
Index ¶
- type CollectionName
- type Conflict
- type ConnectedExam
- type Count
- type DB
- func (db *DB) AddAdditionalExam(ctx context.Context, exam model.AdditionalExamInput) (bool, error)deprecated
- func (db *DB) AddAncode(ctx context.Context, zpaAncode int, program string, primussAncode int) error
- func (db *DB) AddExamToSlot(ctx context.Context, planEntry *model.PlanEntry) (bool, error)
- func (db *DB) AddExternalExam(ctx context.Context, exam *model.ExternalExam) error
- func (db *DB) AddInvigilation(ctx context.Context, room string, day, slot, invigilatorID int) error
- func (db *DB) AddNta(ctx context.Context, nta *model.NTA) (*model.NTA, error)
- func (db *DB) AddRoomToExam(ctx context.Context, room *model.RoomForExam) error
- func (db *DB) AddZpaExamToPlan(ctx context.Context, ancode int) (bool, error)
- func (db *DB) AdditionalExams(ctx context.Context) ([]*model.AdditionalExam, error)deprecated
- func (db *DB) AllSemesterNames() ([]*model.Semester, error)
- func (db *DB) AncodesInPlan(ctx context.Context) ([]int, error)
- func (db *DB) BackupPlan(ctx context.Context) error
- func (db *DB) CacheExam(ctx context.Context, exam *model.Exam) error
- func (db *DB) CacheGeneratedExams(ctx context.Context, exams []*model.GeneratedExam) error
- func (db *DB) CacheInvigilatorTodos(ctx context.Context, todos *model.InvigilationTodos) error
- func (db *DB) CacheTeachers(teachers []*model.Teacher, semester string) error
- func (db *DB) CacheZPAExams(exams []*model.ZPAExam) error
- func (db *DB) CachedExam(ctx context.Context, ancode int) (*model.Exam, error)
- func (db *DB) CachedExams(ctx context.Context) ([]*model.Exam, error)
- func (db *DB) ChangeAncode(ctx context.Context, program string, ancode, newAncode int) (*model.PrimussExam, error)
- func (db *DB) ChangeAncodeInConflicts(ctx context.Context, program string, ancode, newAncode int) (*model.Conflicts, error)
- func (db *DB) ChangeAncodeInStudentRegs(ctx context.Context, program string, ancode, newAncode int) ([]*model.StudentReg, error)
- func (db *DB) ChangeAncodeInStudentRegsCount(ctx context.Context, program string, ancode, newAncode int) error
- func (db *DB) ChangeRoom(ctx context.Context, ancode int, oldRoom, newRoom *model.Room) (bool, error)
- func (db *DB) CheckStudentRegsCount(ctx context.Context, program string, ancode, studentRegsCount int) bool
- func (db *DB) DropAndSave(ctx context.Context, objects []interface{}) error
- func (db *DB) Exahm(ctx context.Context, ancode int) (bool, error)
- func (db *DB) ExamGroup(ctx context.Context, examGroupCode int) (*model.ExamGroup, error)
- func (db *DB) ExamGroupIsLocked(ctx context.Context, examGroupCode int) booldeprecated
- func (db *DB) ExamGroups(ctx context.Context) ([]*model.ExamGroup, error)
- func (db *DB) ExamIsLocked(ctx context.Context, ancode int) bool
- func (db *DB) ExamWithRegs(ctx context.Context, ancode int) (*model.ExamWithRegs, error)
- func (db *DB) ExamerInPlan(ctx context.Context) ([]*model.ExamerInPlan, error)
- func (db *DB) ExamsAlreadyPrepared(ctx context.Context) bool
- func (db *DB) ExamsInPlan(ctx context.Context) ([]*model.ExamInPlan, error)
- func (db *DB) ExamsInSlot(ctx context.Context, day int, time int) ([]*model.ExamInPlan, error)deprecated
- func (db *DB) ExamsWithRegs(ctx context.Context) ([]*model.ExamWithRegs, error)
- func (db *DB) ExcludeDays(ctx context.Context, ancode int, days []*time.Time) (bool, error)
- func (db *DB) ExternalExams(ctx context.Context) ([]*model.ExternalExam, error)
- func (db *DB) GetAddedAncodes(ctx context.Context) (map[int][]model.ZPAPrimussAncodes, error)
- func (db *DB) GetAddedAncodesForAncode(ctx context.Context, ancode int) ([]model.ZPAPrimussAncodes, error)
- func (db *DB) GetAllInvigilations(ctx context.Context) ([]*model.Invigilation, error)
- func (db *DB) GetAncodesPlannedPerProgram(ctx context.Context) (map[int][]string, error)
- func (db *DB) GetConnectedExam(ctx context.Context, ancode int) (*model.ConnectedExam, error)
- func (db *DB) GetConnectedExams(ctx context.Context) ([]*model.ConnectedExam, error)
- func (db *DB) GetConstraints(ctx context.Context) ([]*model.Constraints, error)
- func (db *DB) GetConstraintsForAncode(ctx context.Context, ancode int) (*model.Constraints, error)
- func (db *DB) GetExamGroupForAncode(ctx context.Context, ancode int) (*model.ExamGroup, error)
- func (db *DB) GetExamsInSlot(ctx context.Context, day int, time int) ([]*model.PlannedExam, error)
- func (db *DB) GetGeneratedExam(ctx context.Context, ancode int) (*model.GeneratedExam, error)
- func (db *DB) GetGeneratedExams(ctx context.Context) ([]*model.GeneratedExam, error)
- func (db *DB) GetGeneratedExamsForExamer(ctx context.Context, examerID int) ([]*model.GeneratedExam, error)
- func (db *DB) GetInvigilationInSlot(ctx context.Context, roomname string, day, slot int) ([]*model.Invigilation, error)
- func (db *DB) GetInvigilationTodos(ctx context.Context) (*model.InvigilationTodos, error)
- func (db *DB) GetInvigilatorForRoom(ctx context.Context, name string, day, time int) (*model.Teacher, error)
- func (db *DB) GetInvigilatorInSlot(ctx context.Context, roomname string, day, slot int) (*model.Teacher, error)
- func (db *DB) GetInvigilatorRequirements(ctx context.Context, teacherID int) (*zpa.SupervisorRequirements, error)
- func (db *DB) GetInvigilators(ctx context.Context) ([]*model.Teacher, error)
- func (db *DB) GetNextExamGroupCode(ctx context.Context) (int, error)
- func (db *DB) GetOtherInvigilations(ctx context.Context) ([]*model.Invigilation, error)
- func (db *DB) GetPrimussConflictsForAncode(ctx context.Context, program string, ancode int) (*model.Conflicts, error)
- func (db *DB) GetPrimussConflictsForAncodeOnlyPlanned(ctx context.Context, program string, ancode int, ...) (*model.Conflicts, error)
- func (db *DB) GetPrimussExam(ctx context.Context, program string, ancode int) (*model.PrimussExam, error)
- func (db *DB) GetPrimussExams(ctx context.Context) ([]*model.PrimussExamByProgram, error)
- func (db *DB) GetPrimussExamsForAncode(ctx context.Context, ancode int) ([]*model.PrimussExam, error)
- func (db *DB) GetPrimussStudentRegsForProgrammAncode(ctx context.Context, program string, ancode int) ([]*model.StudentReg, error)
- func (db *DB) GetPrimussStudentRegsPerAncode(ctx context.Context, program string) (map[int][]*model.StudentReg, error)
- func (db *DB) GetPrimussStudentRegsPerStudent(ctx context.Context, program string) (map[string][]*model.StudentReg, error)
- func (db *DB) GetPrograms(ctx context.Context) ([]string, error)
- func (db *DB) GetRegsWithErrors(ctx context.Context) ([]*model.RegWithError, error)
- func (db *DB) GetSelfInvigilations(ctx context.Context) ([]*model.Invigilation, error)
- func (db *DB) GetStudentRegsCount(ctx context.Context, program string, ancode int) (int, error)
- func (db *DB) GetStudentRegsPerAncodePlanned(ctx context.Context) ([]*model.StudentRegsPerAncode, error)
- func (db *DB) GetTeacher(ctx context.Context, id int) (*model.Teacher, error)
- func (db *DB) GetTeachers(ctx context.Context) ([]*model.Teacher, error)
- func (db *DB) GetZPAExams(ctx context.Context) ([]*model.ZPAExam, error)
- func (db *DB) GetZPAExamsNotToPlan(ctx context.Context) ([]*model.ZPAExam, error)
- func (db *DB) GetZPAExamsPlannedOrNotPlanned(ctx context.Context) ([]*model.ZPAExam, error)
- func (db *DB) GetZPAExamsToPlan(ctx context.Context) ([]*model.ZPAExam, error)
- func (db *DB) GetZpaAncodesNotPlanned(ctx context.Context) (*set.Set[int], error)
- func (db *DB) GetZpaAncodesPlanned(ctx context.Context) (*set.Set[int], error)
- func (db *DB) GetZpaAncodesPlannedOrNotPlanned(ctx context.Context) (*set.Set[int], error)
- func (db *DB) GetZpaExamByAncode(ctx context.Context, ancode int) (*model.ZPAExam, error)
- func (db *DB) InvigilationsForInvigilator(ctx context.Context, invigilatorID int) ([]*model.Invigilation, error)
- func (db *DB) Lab(ctx context.Context, ancode int) (bool, error)
- func (db *DB) LockExam(ctx context.Context, ancode int) (*model.PlanEntry, error)
- func (db *DB) LockPlan(ctx context.Context) error
- func (db *DB) Log(ctx context.Context, subj, msg string) error
- func (db *DB) MucDaiExamsForProgram(ctx context.Context, program string) ([]*MucDaiExam, error)
- func (db *DB) NotPlannedByMe(ctx context.Context, ancode int) (bool, error)
- func (db *DB) Nta(ctx context.Context, mtknr string) (*model.NTA, error)
- func (db *DB) NtaWithRegs(ctx context.Context, mtknr string) (*model.NTAWithRegs, error)
- func (db *DB) Ntas(ctx context.Context) ([]*model.NTA, error)
- func (db *DB) NtasWithRegs(ctx context.Context) ([]*model.Student, error)
- func (db *DB) Online(ctx context.Context, ancode int) (bool, error)
- func (db *DB) PlacesWithSockets(ctx context.Context, ancode int) (bool, error)
- func (db *DB) PlanAncodeEntries(ctx context.Context) ([]*model.PlanEntry, error)deprecated
- func (db *DB) PlanEntries(ctx context.Context) ([]*model.PlanEntry, error)
- func (db *DB) PlanEntry(ctx context.Context, ancode int) (*model.PlanEntry, error)
- func (db *DB) PlanEntryForExamGroup(ctx context.Context, examGroupCode int) (*model.PlanEntry, error)deprecated
- func (db *DB) PlannedAncodes(ctx context.Context) ([]*model.PlanEntry, error)
- func (db *DB) PlannedExamsByMainExamer(ctx context.Context, examerID int) ([]*model.ExamInPlan, error)deprecated
- func (db *DB) PlannedRoomNames(ctx context.Context) ([]string, error)
- func (db *DB) PlannedRoomNamesInSlot(ctx context.Context, day, slot int) ([]string, error)
- func (db *DB) PlannedRooms(ctx context.Context) ([]*model.PlannedRoom, error)
- func (db *DB) PlannedRoomsForAncode(ctx context.Context, ancode int) ([]*model.PlannedRoom, error)
- func (db *DB) PlannedRoomsInSlot(ctx context.Context, day, slot int) ([]*model.PlannedRoom, error)
- func (db *DB) PossibleDays(ctx context.Context, ancode int, days []*time.Time) (bool, error)
- func (db *DB) PrimussExamExists(ctx context.Context, program string, ancode int) (bool, error)
- func (db *DB) RemoveStudentReg(ctx context.Context, program string, ancode int, mtknr string) (int, error)
- func (db *DB) RemoveUnlockedExamGroupsFromPlan(ctx context.Context) (int, error)
- func (db *DB) ReplaceConnectedExam(ctx context.Context, exam *model.ConnectedExam) error
- func (db *DB) ReplaceNonNTARooms(ctx context.Context, plannedRooms []*model.PlannedRoom) error
- func (db *DB) ReplaceRoomsForNTA(ctx context.Context, plannedRooms []*model.PlannedRoom) error
- func (db *DB) RmCacheExams(ctx context.Context) error
- func (db *DB) RmExamGroupFromSlot(ctx context.Context, ancode int) (bool, error)
- func (db *DB) RmZpaExamFromPlan(ctx context.Context, ancode int) (bool, error)
- func (db *DB) RoomFromName(ctx context.Context, roomName string) (*model.Room, error)
- func (db *DB) RoomPlannedInSlot(ctx context.Context, roomName string, day int, time int) ([]*model.RoomForExam, error)
- func (db *DB) Rooms(ctx context.Context) ([]*model.Room, error)
- func (db *DB) RoomsForAncode(ctx context.Context, ancode int) ([]*model.RoomForExam, error)
- func (db *DB) RoomsForSlot(ctx context.Context, day int, time int) (*model.SlotWithRooms, error)
- func (db *DB) RoomsPlannedInSlot(ctx context.Context, day, time int) ([]*model.RoomForExam, error)
- func (db *DB) SafeExamBrowser(ctx context.Context, ancode int) (bool, error)
- func (db *DB) SameSlot(ctx context.Context, ancode int, ancodes []int) (bool, error)
- func (db *DB) Save(ctx context.Context, objects []interface{}) error
- func (db *DB) SaveConnectedExam(ctx context.Context, exam *model.ConnectedExam) error
- func (db *DB) SaveConnectedExams(ctx context.Context, exams []*model.ConnectedExam) error
- func (db *DB) SaveExamGroups(ctx context.Context, exams []*model.ExamGroup) error
- func (db *DB) SaveExamsWithRegs(ctx context.Context, exams []*model.ExamWithRegs) error
- func (db *DB) SavePlanEntries(ctx context.Context, planEntries []*model.PlanEntry) error
- func (db *DB) SavePlanEntriesToBackup(ctx context.Context, planEntries []*model.PlanEntry) error
- func (db *DB) SaveRooms(ctx context.Context, slotsWithRooms []*model.SlotWithRooms) error
- func (db *DB) SaveSemesterConfig(ctx context.Context, semesterConfig *model.SemesterConfig) error
- func (db *DB) SaveSemesterNTAs(ctx context.Context, ntaWithRegs []*model.NTAWithRegs) error
- func (db *DB) SaveStudentRegs(ctx context.Context, studentRegs []interface{}) error
- func (db *DB) SaveStudentRegsPerAncode(ctx context.Context, ...) errordeprecated
- func (db *DB) SaveStudentRegsPerStudent(ctx context.Context, studentRegsPerStudent map[string][]*model.StudentReg, ...) errordeprecated
- func (db *DB) SetCurrentSemesterOnNTA(ctx context.Context, mtknr string) error
- func (db *DB) SetRegsWithErrors(ctx context.Context, regsWithErrors []*model.RegWithError) error
- func (db *DB) SetSemester(semester string) error
- func (db *DB) SetSemesterOnNTAs(ctx context.Context, studentRegs []interface{}) error
- func (db *DB) SetZPAExamsToPlan(ctx context.Context, examsToPlan, examsNotToPlan []*model.ZPAExam) error
- func (db *DB) StudentByMtknr(ctx context.Context, mtknr string, ntas map[string]*model.NTA) (*model.Student, error)
- func (db *DB) StudentRegsForProgram(ctx context.Context, program string) ([]*model.StudentReg, error)
- func (db *DB) StudentRegsPerStudentAll(ctx context.Context) ([]*model.StudentRegsPerStudent, error)
- func (db *DB) StudentRegsPerStudentPlanned(ctx context.Context) ([]*model.Student, error)
- func (db *DB) StudentsByName(ctx context.Context, regex string) ([]*model.Student, error)
- func (db *DB) UnlockExam(ctx context.Context, ancode int) (*model.PlanEntry, error)
- type ExamToPlanType
- type MucDaiExam
- type PrimussExam
- type PrimussType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionName ¶
type CollectionName string
type ConnectedExam ¶
type ConnectedExam struct { ZpaExam int `bson:"zpaExamAncode"` PrimussExams []*PrimussExam `bson:"primussExamsAncodes"` OtherPrimussExams []*PrimussExam `bson:"otherPrimussExamsAncodes"` Errors []string `bson:"errors"` }
type DB ¶
func (*DB) AddAdditionalExam
deprecated
func (*DB) AddExamToSlot ¶
func (*DB) AddExternalExam ¶
func (*DB) AddInvigilation ¶
func (*DB) AddRoomToExam ¶
func (*DB) AddZpaExamToPlan ¶
func (*DB) AdditionalExams
deprecated
func (*DB) CacheGeneratedExams ¶
func (*DB) CacheInvigilatorTodos ¶
func (*DB) CacheTeachers ¶
func (*DB) CachedExam ¶
func (*DB) ChangeAncode ¶
func (*DB) ChangeAncodeInConflicts ¶
func (*DB) ChangeAncodeInStudentRegs ¶
func (*DB) ChangeAncodeInStudentRegsCount ¶
func (*DB) ChangeRoom ¶
func (*DB) CheckStudentRegsCount ¶
func (*DB) DropAndSave ¶
func (*DB) ExamWithRegs ¶
func (*DB) ExamerInPlan ¶
func (*DB) ExamsInPlan ¶
func (*DB) ExamsInSlot
deprecated
func (*DB) ExamsWithRegs ¶
func (*DB) ExcludeDays ¶
func (*DB) ExternalExams ¶
func (*DB) GetAddedAncodes ¶
func (*DB) GetAddedAncodesForAncode ¶
func (*DB) GetAllInvigilations ¶
func (*DB) GetAncodesPlannedPerProgram ¶
func (*DB) GetConnectedExam ¶
func (*DB) GetConnectedExams ¶
func (*DB) GetConstraints ¶
func (*DB) GetConstraintsForAncode ¶
func (*DB) GetExamGroupForAncode ¶
func (*DB) GetExamsInSlot ¶
func (*DB) GetGeneratedExam ¶
func (*DB) GetGeneratedExams ¶
func (*DB) GetGeneratedExamsForExamer ¶
func (*DB) GetInvigilationInSlot ¶
func (*DB) GetInvigilationTodos ¶
func (*DB) GetInvigilatorForRoom ¶
func (*DB) GetInvigilatorInSlot ¶
func (*DB) GetInvigilatorRequirements ¶
func (*DB) GetInvigilators ¶
func (*DB) GetNextExamGroupCode ¶
func (*DB) GetOtherInvigilations ¶
func (*DB) GetPrimussConflictsForAncode ¶
func (*DB) GetPrimussConflictsForAncodeOnlyPlanned ¶
func (*DB) GetPrimussExam ¶
func (*DB) GetPrimussExams ¶
func (*DB) GetPrimussExamsForAncode ¶
func (*DB) GetPrimussStudentRegsForProgrammAncode ¶
func (*DB) GetPrimussStudentRegsPerAncode ¶
func (*DB) GetPrimussStudentRegsPerStudent ¶
func (*DB) GetRegsWithErrors ¶
func (*DB) GetSelfInvigilations ¶
func (*DB) GetStudentRegsCount ¶
func (*DB) GetStudentRegsPerAncodePlanned ¶
func (*DB) GetTeacher ¶
func (*DB) GetZPAExamsNotToPlan ¶
func (*DB) GetZPAExamsPlannedOrNotPlanned ¶
func (*DB) GetZPAExamsToPlan ¶
func (*DB) GetZpaAncodesNotPlanned ¶
func (*DB) GetZpaAncodesPlanned ¶
func (*DB) GetZpaAncodesPlannedOrNotPlanned ¶
func (*DB) GetZpaExamByAncode ¶
func (*DB) InvigilationsForInvigilator ¶
func (*DB) MucDaiExamsForProgram ¶
func (*DB) NotPlannedByMe ¶
func (*DB) NtaWithRegs ¶
// Deprecated: remove me
func (*DB) PlacesWithSockets ¶
func (*DB) PlannedAncodes ¶
func (*DB) PlannedExamsByMainExamer
deprecated
func (*DB) PlannedRoomNamesInSlot ¶
func (*DB) PlannedRooms ¶
func (*DB) PlannedRoomsForAncode ¶
func (*DB) PlannedRoomsInSlot ¶
func (*DB) PossibleDays ¶
func (*DB) PrimussExamExists ¶
func (*DB) RemoveStudentReg ¶
func (*DB) RemoveUnlockedExamGroupsFromPlan ¶
func (*DB) ReplaceConnectedExam ¶
func (*DB) ReplaceNonNTARooms ¶
func (*DB) ReplaceRoomsForNTA ¶
func (*DB) RmExamGroupFromSlot ¶
func (*DB) RmZpaExamFromPlan ¶
func (*DB) RoomFromName ¶
func (*DB) RoomPlannedInSlot ¶
func (*DB) RoomsForAncode ¶
func (*DB) RoomsForSlot ¶
func (*DB) RoomsPlannedInSlot ¶
func (*DB) SafeExamBrowser ¶
func (*DB) SaveConnectedExam ¶
func (*DB) SaveConnectedExams ¶
func (*DB) SaveExamGroups ¶
func (*DB) SaveExamsWithRegs ¶
func (*DB) SavePlanEntries ¶
func (*DB) SavePlanEntriesToBackup ¶
func (*DB) SaveSemesterConfig ¶
func (*DB) SaveSemesterNTAs ¶
// Deprecated: remove me
func (*DB) SaveStudentRegs ¶
func (*DB) SaveStudentRegsPerAncode
deprecated
func (*DB) SaveStudentRegsPerStudent
deprecated
func (*DB) SetCurrentSemesterOnNTA ¶
TODO: when to call?
func (*DB) SetRegsWithErrors ¶
func (*DB) SetSemester ¶
func (*DB) SetSemesterOnNTAs ¶
func (*DB) SetZPAExamsToPlan ¶
func (*DB) StudentByMtknr ¶
func (*DB) StudentRegsForProgram ¶
func (*DB) StudentRegsPerStudentAll ¶
func (*DB) StudentRegsPerStudentPlanned ¶
func (*DB) StudentsByName ¶
type ExamToPlanType ¶
type MucDaiExam ¶
type MucDaiExam struct { PrimussAncode int `bson:"Nr"` Module string `bson:"Modulname"` ExamType string `bson:"Prüfungsform"` Grading string `bson:"Bewertung"` Duration int `bson:"Dauer"` MainExamer string `bson:"Erstpruefender"` SecondExamer string `bson:"Zweitpruefender"` IsRepeaterExam string `bson:"IstWiederholung"` Program string `bson:"Studiengruppe"` Planer string `bson:"Prüfungsplanung"` }
type PrimussExam ¶
type PrimussType ¶
type PrimussType string
const ( StudentRegs PrimussType = "studentregs" Exams PrimussType = "exams" Counts PrimussType = "count" Conflicts PrimussType = "conflicts" )
Source Files ¶
- collection.go
- constraints.go
- database.go
- exam.go
- exam_cache.go
- exam_connected.go
- examgroup.go
- external_exam.go
- generatedExams.go
- invigilation.go
- invigilator.go
- log.go
- mongo.go
- mucdai.go
- nta.go
- plan.go
- plannedExams.go
- prepare_studentregs.go
- primuss.go
- primuss_conflicts.go
- primuss_exam.go
- primuss_studentregs.go
- rooms.go
- save.go
- studentregs.go
- zpa.go
- zpa_exams.go
Click to show internal directories.
Click to hide internal directories.