Documentation
¶
Index ¶
- type AddedPrimussAncode
- type AdditionalExam
- type AdditionalExamInput
- type AnCode
- type Conflict
- type ConflictPerProgram
- type Conflicts
- type ConflictsPerProgramAncode
- type ConnectedExam
- type Constraints
- type Emails
- type EnhancedPrimussExam
- type Exam
- type ExamDay
- type ExamGroup
- type ExamGroupConflict
- type ExamGroupInfo
- type ExamInPlan
- type ExamToPlan
- type ExamWithRegs
- type ExamWithRegsAndRooms
- type ExamerInPlan
- type ExternalExam
- 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 Plan
- type PlanEntry
- type PlannedExam
- type PlannedExamWithNta
- type PlannedRoom
- type PrimussExam
- type PrimussExamAncode
- type PrimussExamByProgram
- type PrimussExamInput
- type PrimussExamWithCount
- type Query
- type RegWithError
- type RegisteredExam
- type RemovedPrimussExam
- type Room
- type RoomAndExam
- type RoomConstraints
- type RoomForExam
- type RoomForExamInput
- type RoomWithInvigilator
- type Semester
- type SemesterConfig
- type Slot
- type SlotWithExamGroups
- type SlotWithRooms
- 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 AdditionalExam ¶
type AdditionalExamInput ¶
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 EnhancedPrimussExam ¶
type EnhancedPrimussExam struct {
Exam *PrimussExam `json:"exam"`
StudentRegs []*StudentReg `json:"studentRegs"`
Conflicts []*Conflict `json:"conflicts"`
Ntas []*NTA `json:"ntas"`
}
type Exam ¶
type Exam struct {
Ancode int `json:"ancode"`
ZpaExam *ZPAExam `json:"zpaExam,omitempty"`
ExternalExam *ExternalExam `json:"externalExam,omitempty"`
PrimussExams []*PrimussExam `json:"primussExams"`
StudentRegs []*StudentRegsPerAncodeAndProgram `json:"studentRegs"`
Conflicts []*ConflictsPerProgramAncode `json:"conflicts"`
ConnectErrors []string `json:"connectErrors"`
Constraints *Constraints `json:"constraints,omitempty"`
RegularStudents []*Student `json:"regularStudents,omitempty"`
NtaStudents []*Student `json:"ntaStudents,omitempty"`
Slot *Slot `json:"slot,omitempty"`
Rooms []*RoomForExam `json:"rooms,omitempty"`
}
type ExamGroup ¶
type ExamGroup struct {
ExamGroupCode int `json:"examGroupCode"`
Exams []*ExamToPlan `json:"exams"`
ExamGroupInfo *ExamGroupInfo `json:"examGroupInfo,omitempty"`
}
type ExamGroupConflict ¶
type ExamGroupInfo ¶
type ExamGroupInfo struct {
NotPlannedByMe bool `json:"notPlannedByMe"`
ExcludeDays []int `json:"excludeDays,omitempty"`
PossibleDays []int `json:"possibleDays,omitempty"`
FixedDay *int `json:"fixedDay,omitempty"`
FixedSlot *Slot `json:"fixedSlot,omitempty"`
PossibleSlots []*Slot `json:"possibleSlots,omitempty"`
Conflicts []*ExamGroupConflict `json:"conflicts,omitempty"`
StudentRegs int `json:"studentRegs"`
Programs []string `json:"programs"`
MaxDuration int `json:"maxDuration"`
MaxDurationNta *int `json:"maxDurationNTA,omitempty"`
}
type ExamInPlan ¶
type ExamInPlan struct {
Exam *ExamWithRegs `json:"exam"`
Constraints *Constraints `json:"constraints,omitempty"`
Nta []*NTAWithRegs `json:"nta,omitempty"`
Slot *Slot `json:"slot,omitempty"`
}
type ExamToPlan ¶
type ExamToPlan struct {
Exam *ExamWithRegs `json:"exam"`
Constraints *Constraints `json:"constraints,omitempty"`
}
func (*ExamToPlan) IsGO ¶
func (exam *ExamToPlan) IsGO() bool
type ExamWithRegs ¶
type ExamWithRegs struct {
Ancode int `json:"ancode"`
ZpaExam *ZPAExam `json:"zpaExam"`
PrimussExams []*PrimussExam `json:"primussExams"`
StudentRegs []*StudentRegsPerAncodeAndProgram `json:"studentRegs"`
Conflicts []*ConflictPerProgram `json:"conflicts"`
ConnectErrors []string `json:"connectErrors"`
}
type ExamWithRegsAndRooms ¶
type ExamWithRegsAndRooms struct {
Exam *PlannedExam `json:"exam"`
NormalRegsMtknr []string `json:"normalRegsMtknr"`
Ntas []*NTA `json:"ntas"`
Rooms []*PlannedRoom `json:"rooms"`
}
type ExamerInPlan ¶
type ExternalExam ¶
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 Plan ¶
type Plan struct {
SemesterConfig *SemesterConfig `json:"semesterConfig,omitempty"`
Slots []*SlotWithExamGroups `json:"slots,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 PlannedExamWithNta ¶
type PlannedExamWithNta struct {
Exam *ExamWithRegs `json:"exam"`
Constraints *Constraints `json:"constraints,omitempty"`
Nta []*NTAWithRegs `json:"nta,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"`
}
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 RegisteredExam ¶
type RegisteredExam struct {
Exam *PrimussExam `json:"exam"`
StudentRegs []*StudentReg `json:"studentRegs"`
Conflicts []*Conflict `json:"conflicts"`
}
type RemovedPrimussExam ¶
type RoomAndExam ¶
type RoomAndExam struct {
Room *PlannedRoom `json:"room"`
Exam *ZPAExam `json:"exam"`
}
type RoomConstraints ¶
type RoomForExam ¶
type RoomForExamInput ¶
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 SemesterConfig ¶
type SlotWithExamGroups ¶
type SlotWithRooms ¶
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"`
}
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"`
}
type ZPAExamsForType ¶
type ZPAInvigilator ¶
type ZPAPrimussAncodes ¶
type ZPAStudent ¶
type ZPAStudentReg ¶
Click to show internal directories.
Click to hide internal directories.