Documentation
¶
Index ¶
- type AddedPrimussAncode
- type AnCode
- type Conflict
- type ConflictPerProgram
- type Conflicts
- type ConflictsPerProgramAncode
- type ConnectedExam
- type Constraints
- type ConstraintsInput
- type Emails
- type EnhancedPrimussExam
- type EnhancedStudentReg
- type ExamDay
- type ExamWithRegsAndRooms
- type ExamerInPlan
- type FK07Program
- type GeneratedExam
- type Invigilation
- type InvigilationSlot
- type InvigilationTodos
- type Invigilator
- type InvigilatorRequirements
- type InvigilatorTodos
- type InvigilatorsForDay
- type MucDaiExam
- type Mutation
- type NTA
- type NTAExam
- type NTAInput
- type NTAWithRegs
- type NTAWithRegsByExam
- type NTAWithRegsByExamAndTeacher
- type PlanEntry
- type PlannedExam
- type PlannedRoom
- type PreExam
- type PrePlannedRoom
- type PrimussExam
- type PrimussExamAncode
- type PrimussExamByProgram
- type PrimussExamInput
- type PrimussExamWithCount
- type Query
- type RegWithError
- type RegWithProgram
- type RemovedPrimussExam
- type Room
- type RoomAndExam
- type RoomConstraints
- type RoomWithInvigilator
- type RoomsForSlot
- type Semester
- type SemesterConfig
- type Slot
- type Starttime
- type Step
- type Student
- type StudentReg
- type StudentRegsForAncode
- type StudentRegsPerAncode
- type StudentRegsPerAncodeAndProgram
- type StudentRegsPerStudent
- type Teacher
- type ZPAAncodes
- type ZPAConflict
- type ZPAExam
- type ZPAExamPlan
- type ZPAExamPlanRoom
- type ZPAExamWithConstraints
- type ZPAExamsForType
- type ZPAInvigilator
- type ZPAPrimussAncodes
- type ZPAStudent
- type ZPAStudentReg
- type ZPAStudentRegError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddedPrimussAncode ¶
type AddedPrimussAncode struct {
Ancode int `json:"ancode"`
PrimussAncode ZPAPrimussAncodes `json:"primuss_ancodes"`
}
type ConflictPerProgram ¶
type ConnectedExam ¶
type ConnectedExam struct {
ZpaExam *ZPAExam `json:"zpaExam"`
PrimussExams []*PrimussExam `json:"primussExams"`
OtherPrimussExams []*PrimussExam `json:"otherPrimussExams"`
Errors []string `json:"errors"`
}
type Constraints ¶
type Constraints struct {
Ancode int `json:"ancode"`
NotPlannedByMe bool `json:"notPlannedByMe"`
ExcludeDays []*time.Time `json:"excludeDays,omitempty"`
PossibleDays []*time.Time `json:"possibleDays,omitempty"`
FixedDay *time.Time `json:"fixedDay,omitempty"`
FixedTime *time.Time `json:"fixedTime,omitempty"`
SameSlot []int `json:"sameSlot,omitempty"`
Online bool `json:"online"`
RoomConstraints *RoomConstraints `json:"roomConstraints,omitempty"`
}
type ConstraintsInput ¶ added in v1.20.0
type ConstraintsInput struct {
AllowedRooms []string `json:"allowedRooms,omitempty"`
NotPlannedByMe *bool `json:"notPlannedByMe,omitempty"`
ExcludeDays []*time.Time `json:"excludeDays,omitempty"`
PossibleDays []*time.Time `json:"possibleDays,omitempty"`
FixedDay *time.Time `json:"fixedDay,omitempty"`
FixedTime *time.Time `json:"fixedTime,omitempty"`
SameSlot []int `json:"sameSlot,omitempty"`
Online *bool `json:"online,omitempty"`
PlacesWithSocket *bool `json:"placesWithSocket,omitempty"`
Lab *bool `json:"lab,omitempty"`
Exahm *bool `json:"exahm,omitempty"`
Seb *bool `json:"seb,omitempty"`
KdpJiraURL *string `json:"kdpJiraURL,omitempty"`
MaxStudents *int `json:"maxStudents,omitempty"`
Comments *string `json:"comments,omitempty"`
}
type EnhancedPrimussExam ¶
type EnhancedPrimussExam struct {
Exam *PrimussExam `json:"exam"`
StudentRegs []*EnhancedStudentReg `json:"studentRegs"`
Conflicts []*Conflict `json:"conflicts"`
Ntas []*NTA `json:"ntas"`
}
type EnhancedStudentReg ¶ added in v1.62.0
type ExamWithRegsAndRooms ¶
type ExamWithRegsAndRooms struct {
Exam *PlannedExam `json:"exam"`
NormalRegsMtknr []string `json:"normalRegsMtknr"`
NtasInNormalRooms []*NTA `json:"ntasInNormalRooms"`
NtasInAloneRooms []*NTA `json:"ntasInAloneRooms"`
Rooms []*PlannedRoom `json:"rooms"`
}
type ExamerInPlan ¶
type FK07Program ¶
type FK07Program struct {
Name string `json:"name"`
}
type GeneratedExam ¶
type GeneratedExam struct {
Ancode int `json:"ancode"`
ZpaExam *ZPAExam `json:"zpaExam"`
PrimussExams []*EnhancedPrimussExam `json:"primussExams"`
Constraints *Constraints `json:"constraints,omitempty"`
Conflicts []*ZPAConflict `json:"conflicts"`
StudentRegsCount int `json:"studentRegsCount"`
Ntas []*NTA `json:"ntas"`
MaxDuration int `json:"maxDuration"`
}
type Invigilation ¶
type InvigilationSlot ¶
type InvigilationSlot struct {
Reserve *Teacher `json:"reserve,omitempty"`
RoomsWithInvigilators []*RoomWithInvigilator `json:"roomsWithInvigilators"`
}
type InvigilationTodos ¶
type InvigilationTodos struct {
SumExamRooms int `json:"sumExamRooms"`
SumReserve int `json:"sumReserve"`
SumOtherContributions int `json:"sumOtherContributions"`
SumOtherContributionsOvertimeCutted int `json:"sumOtherContributionsOvertimeCutted"`
InvigilatorCount int `json:"invigilatorCount"`
TodoPerInvigilator int `json:"todoPerInvigilator"`
TodoPerInvigilatorOvertimeCutted int `json:"todoPerInvigilatorOvertimeCutted"`
Invigilators []*Invigilator `json:"invigilators"`
}
type Invigilator ¶
type Invigilator struct {
Teacher *Teacher `json:"teacher"`
Requirements *InvigilatorRequirements `json:"requirements,omitempty"`
Todos *InvigilatorTodos `json:"todos,omitempty"`
}
type InvigilatorRequirements ¶
type InvigilatorRequirements struct {
ExcludedDates []*time.Time `json:"excludedDates"`
ExcludedDays []int `json:"excludedDays"`
ExamDateTimes []*time.Time `json:"examDateTimes"`
ExamDays []int `json:"examDays"`
PartTime float64 `json:"partTime"`
OralExamsContribution int `json:"oralExamsContribution"`
LiveCodingContribution int `json:"liveCodingContribution"`
MasterContribution int `json:"masterContribution"`
FreeSemester float64 `json:"freeSemester"`
OvertimeLastSemester float64 `json:"overtimeLastSemester"`
OvertimeThisSemester float64 `json:"overtimeThisSemester"`
AllContributions int `json:"allContributions"`
Factor float64 `json:"factor"`
OnlyInSlots []*Slot `json:"onlyInSlots"`
}
type InvigilatorTodos ¶
type InvigilatorTodos struct {
TotalMinutes int `json:"totalMinutes"`
DoingMinutes int `json:"doingMinutes"`
Enough bool `json:"enough"`
InvigilationDays []int `json:"invigilationDays,omitempty"`
Invigilations []*Invigilation `json:"invigilations,omitempty"`
}
type InvigilatorsForDay ¶
type InvigilatorsForDay struct {
Want []*Invigilator `json:"want"`
Can []*Invigilator `json:"can"`
}
type MucDaiExam ¶
type MucDaiExam struct {
PrimussAncode int `json:"primussAncode"`
Module string `json:"module"`
MainExamer string `json:"mainExamer"`
MainExamerID *int `json:"mainExamerID,omitempty"`
ExamType string `json:"examType"`
Duration int `json:"duration"`
IsRepeaterExam bool `json:"isRepeaterExam"`
Program string `json:"program"`
PlannedBy string `json:"plannedBy"`
}
type NTA ¶
type NTA struct {
Name string `bson:"name"`
Email *string `bson:"email"`
Mtknr string `bson:"mtknr"`
Compensation string `bson:"compensation"`
DeltaDurationPercent int `bson:"deltaDurationPercent"`
NeedsRoomAlone bool `bson:"needsRoomAlone"`
NeedsHardware bool `bson:"needsHardware"`
Program string `bson:"program"`
From string `bson:"from"`
Until string `bson:"until"`
LastSemester *string `bson:"lastSemester"`
Exams []*NTAExam `bson:"exams"`
Deactivated bool `bson:"deactivated"`
}
func NtaInputToNta ¶
type NTAInput ¶
type NTAInput struct {
Name string `json:"name"`
Email *string `json:"email,omitempty"`
Mtknr string `json:"mtknr"`
Compensation string `json:"compensation"`
DeltaDurationPercent int `json:"deltaDurationPercent"`
NeedsRoomAlone bool `json:"needsRoomAlone"`
NeedsHardware bool `json:"needsHardware"`
Program string `json:"program"`
From string `json:"from"`
Until string `json:"until"`
}
type NTAWithRegs ¶
type NTAWithRegs struct {
Nta *NTA `json:"nta"`
Regs *StudentRegsPerStudent `json:"regs,omitempty"`
}
type NTAWithRegsByExam ¶
type NTAWithRegsByExam struct {
Exam *ZPAExam `json:"exam"`
Ntas []*NTAWithRegs `json:"ntas,omitempty"`
}
type NTAWithRegsByExamAndTeacher ¶
type NTAWithRegsByExamAndTeacher struct {
Teacher *Teacher `json:"teacher"`
Exams []*NTAWithRegsByExam `json:"exams,omitempty"`
}
type PlannedExam ¶
type PlannedExam struct {
Ancode int `json:"ancode"`
ZpaExam *ZPAExam `json:"zpaExam"`
PrimussExams []*EnhancedPrimussExam `json:"primussExams"`
Constraints *Constraints `json:"constraints,omitempty"`
Conflicts []*ZPAConflict `json:"conflicts"`
StudentRegsCount int `json:"studentRegsCount"`
Ntas []*NTA `json:"ntas"`
MaxDuration int `json:"maxDuration"`
PlanEntry *PlanEntry `json:"planEntry,omitempty"`
PlannedRooms []*PlannedRoom `json:"plannedRooms,omitempty"`
}
type PlannedRoom ¶
type PlannedRoom struct {
Day int `json:"day"`
Slot int `json:"slot"`
RoomName string `json:"roomName"`
Ancode int `json:"ancode"`
Duration int `json:"duration"`
Handicap bool `json:"handicap"`
HandicapRoomAlone bool `json:"handicapRoomAlone"`
Reserve bool `json:"reserve"`
StudentsInRoom []string `json:"studentsInRoom"`
NtaMtknr *string `json:"ntaMtknr,omitempty"`
PrePlanned bool `json:"prePlanned,omitempty"`
}
type PreExam ¶ added in v1.23.0
type PreExam struct {
ZpaExam *ZPAExam `json:"zpaExam"`
Constraints *Constraints `json:"constraints,omitempty"`
PlanEntry *PlanEntry `json:"planEntry,omitempty"`
}
type PrePlannedRoom ¶ added in v1.33.0
type PrimussExam ¶
type PrimussExamAncode ¶
type PrimussExamByProgram ¶
type PrimussExamByProgram struct {
Program string `json:"program"`
Exams []*PrimussExamWithCount `json:"exams"`
}
type PrimussExamInput ¶
type PrimussExamWithCount ¶
type RegWithError ¶
type RegWithError struct {
Registration *ZPAStudentReg `json:"registration"`
Error *ZPAStudentRegError `json:"error"`
}
type RegWithProgram ¶ added in v1.57.0
type RemovedPrimussExam ¶
type Room ¶
type Room struct {
Name string `json:"name"`
Seats int `json:"seats"`
Handicap bool `json:"handicap"`
Lab bool `json:"lab"`
PlacesWithSocket bool `json:"placesWithSocket"`
NeedsRequest bool `json:"needsRequest"`
Exahm bool `json:"exahm"`
Seb bool `json:"seb"`
SebSeats *int `json:"sebSeats,omitempty"`
HmebSeats *int `json:"hmebSeats,omitempty"`
}
type RoomAndExam ¶
type RoomAndExam struct {
Room *PlannedRoom `json:"room"`
Exam *ZPAExam `json:"exam"`
}
type RoomConstraints ¶
type RoomConstraints struct {
AllowedRooms []string `json:"allowedRooms,omitempty"`
PlacesWithSocket bool `json:"placesWithSocket"`
Lab bool `json:"lab"`
Exahm bool `json:"exahm"`
Seb bool `json:"seb"`
KdpJiraURL *string `json:"kdpJiraURL,omitempty"`
MaxStudents *int `json:"maxStudents,omitempty"`
Comments *string `json:"comments,omitempty"`
}
type RoomWithInvigilator ¶
type RoomWithInvigilator struct {
Name string `json:"name"`
MaxDuration int `json:"maxDuration"`
StudentCount int `json:"studentCount"`
RoomAndExams []*RoomAndExam `json:"roomAndExams"`
Invigilator *Teacher `json:"invigilator,omitempty"`
}
type RoomsForSlot ¶ added in v1.31.0
type SemesterConfig ¶
type SemesterConfig struct {
Days []*ExamDay `json:"days"`
Starttimes []*Starttime `json:"starttimes"`
Slots []*Slot `json:"slots"`
GoSlotsRaw [][]int `json:"goSlotsRaw,omitempty"`
GoSlots []*Slot `json:"goSlots"`
GoDay0 time.Time `json:"goDay0"`
ForbiddenSlots []*Slot `json:"forbiddenSlots,omitempty"`
From time.Time `json:"from"`
FromFk07 time.Time `json:"fromFK07"`
Until time.Time `json:"until"`
Emails *Emails `json:"emails"`
}
type Student ¶
type Student struct {
Mtknr string `json:"mtknr"`
Program string `json:"program"`
Group string `json:"group"`
Name string `json:"name"`
Regs []int `json:"regs"`
RegsWithProgram []*RegWithProgram `json:"regsWithProgram"`
ZpaStudent *ZPAStudent `json:"zpaStudent,omitempty"`
Nta *NTA `json:"nta,omitempty"`
}
type StudentReg ¶
type StudentRegsForAncode ¶
type StudentRegsForAncode struct {
Exam *ZPAExam `json:"exam"`
StudentRegs []*StudentRegsPerAncodeAndProgram `json:"studentRegs"`
}
type StudentRegsPerAncode ¶
type StudentRegsPerAncode struct {
Ancode int `json:"ancode"`
PerProgram []*StudentRegsPerAncodeAndProgram `json:"perProgram"`
}
type StudentRegsPerAncodeAndProgram ¶
type StudentRegsPerAncodeAndProgram struct {
Program string `json:"program"`
Ancode int `json:"ancode"`
StudentRegs []*StudentReg `json:"studentRegs"`
}
type StudentRegsPerStudent ¶
type Teacher ¶
type Teacher struct {
Shortname string `json:"person_shortname"`
Fullname string `json:"person_fullname"`
IsProf bool `json:"is_prof"`
IsLBA bool `json:"is_lba"`
IsProfHC bool `json:"is_profhc"`
IsStaff bool `json:"is_staff"`
LastSemester string `json:"last_semester"`
FK string `json:"fk"`
ID int `json:"person_id"`
Email string `json:"email"`
IsActive bool `json:"is_active"`
}
type ZPAAncodes ¶
type ZPAConflict ¶
type ZPAConflict struct {
Ancode int `json:"ancode"`
NumberOfStuds int `json:"numberOfStuds"`
PrimussAncodes []*PrimussExamAncode `json:"primussAncodes"`
}
type ZPAExam ¶
type ZPAExam struct {
ZpaID int `json:"id"`
Semester string `json:"semester"`
AnCode int `json:"ancode"`
Module string `json:"module"`
MainExamer string `json:"main_examer"`
MainExamerID int `json:"main_examer_id"`
ExamType string `json:"exam_type"`
ExamTypeFull string `json:"full_name"`
Date string `json:"date"`
Starttime string `json:"start_time"`
Duration int `json:"duration"`
IsRepeaterExam bool `json:"is_repeater_exam"`
Groups []string `json:"groups"`
PrimussAncodes []ZPAPrimussAncodes `json:"primuss_ancodes"`
}
type ZPAExamPlan ¶
type ZPAExamPlan struct {
Semester string `json:"semester"`
AnCode int `json:"anCode" bson:"ancode"`
Date string `json:"date"` // "19.07.2022"
Time string `json:"time"` // "14:30"
StudentCount int `json:"total_number"`
ReserveInvigilatorID int `json:"reserveInvigilator_id"`
Rooms []*ZPAExamPlanRoom `json:"rooms"`
}
type ZPAExamPlanRoom ¶
type ZPAExamWithConstraints ¶
type ZPAExamWithConstraints struct {
ZpaExam *ZPAExam `json:"zpaExam"`
Constraints *Constraints `json:"constraints,omitempty"`
PlanEntry *PlanEntry `json:"planEntry,omitempty"`
}
type ZPAExamsForType ¶
type ZPAInvigilator ¶
type ZPAPrimussAncodes ¶
type ZPAStudent ¶
type ZPAStudentReg ¶
Click to show internal directories.
Click to hide internal directories.