Documentation
¶
Index ¶
- Constants
- Variables
- type Building
- type BuildingId
- type BuildingRoom
- type BuildingsBuilding
- type DescriptionModule
- type Event
- type EventId
- type EventInstructor
- type EventLink
- type EventModule
- type EventSearch
- type EventType
- type Frequency
- type Fridolin
- func (f *Fridolin) Building(id BuildingId) (Building, error)
- func (f *Fridolin) Buildings() ([]BuildingsBuilding, error)
- func (f *Fridolin) CertificateOfStudentStatus(term Term) (io.ReadCloser, error)
- func (f *Fridolin) DataSheet() (io.ReadCloser, error)
- func (f *Fridolin) EvaluationOfStudyProgress() (io.ReadCloser, error)
- func (f *Fridolin) Event(id EventId) (Event, error)
- func (f *Fridolin) Grades(degree uint8) ([]GradeSubject, error)
- func (f *Fridolin) Login(username, password string) error
- func (f *Fridolin) Logout() error
- func (f *Fridolin) Module(id ModuleId) (Module, error)
- func (f *Fridolin) ModuleDescriptions(degree uint8, courseOfStudies uint16, mark string, version uint16) ([]DescriptionModule, error)
- func (f *Fridolin) MyEvents() ([]MyEvent, error)
- func (f *Fridolin) MyInfo() (MyInfo, error)
- func (f *Fridolin) News() ([]News, error)
- func (f *Fridolin) PaymentInformation() (PaymentInformation, error)
- func (f *Fridolin) Room(id RoomId) (Room, error)
- func (f *Fridolin) Schedule() ([]ScheduleEvent, error)
- func (f *Fridolin) SearchEvents(s EventSearch, count, offset uint) ([]SearchEvent, error)
- type GradeEvent
- type GradeExam
- type GradeModule
- type GradeReason
- type GradeSubject
- type GradeUnit
- type Group
- type HTML
- type Location
- type Meeting
- type MeetingRoom
- type MeetingState
- type Module
- type ModuleId
- type ModuleRequirement
- type MyEvent
- type MyInfo
- type News
- type ObjectId
- type PaymentInformation
- type PersonId
- type Responsibility
- type Room
- type RoomBuilding
- type RoomId
- type RoomType
- type ScheduleEvent
- type SearchEvent
- type Season
- type StructureTree
- type Term
- type TermCycle
- type Time
- type UserError
Constants ¶
View Source
const ( NoRepetition = iota OnlySummer OnlyWinter Every )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Building ¶
type Building struct { Id BuildingId `json:"id"` Name string `json:"name"` ShortName string `json:"shortName"` AdditionalName string `json:"additionalName"` Campus string `json:"campus,omitempty"` AcademyBuilding string `json:"academyBuilding"` Location *Location `json:"location"` Rooms []BuildingRoom `json:"rooms"` }
type BuildingId ¶
type BuildingId uint
type BuildingRoom ¶
type BuildingsBuilding ¶
type BuildingsBuilding struct { Id BuildingId `json:"id"` Name string `json:"name"` }
type DescriptionModule ¶
type Event ¶
type Event struct { Id EventId `json:"id"` Type EventType `json:"type"` Number uint32 `json:"number"` ShortText string `json:"shortText"` Name string `json:"name"` Links []EventLink `json:"links"` Content *HTML `json:"content"` Literature *HTML `json:"literature"` Comment *HTML `json:"comment"` Prerequisites *HTML `json:"prerequisites"` Term Term `json:"term"` Cycle TermCycle `json:"cycle"` WeeklyHours float32 `json:"weeklyHours"` Members1 uint16 `json:"members1"` Members2 uint16 `json:"members2"` Credits *uint8 `json:"credits"` Groups []Group `json:"groups"` Modules []EventModule `json:"modules"` Instructors []EventInstructor `json:"instructors"` StructureTree StructureTree `json:"structureTree"` }
type EventInstructor ¶
type EventInstructor struct { Id PersonId `json:"id"` Name string `json:"name"` Responsibility Responsibility `json:"responsibility,omitempty"` }
type EventModule ¶
type EventSearch ¶
type EventType ¶
type EventType int16
const ( TrainingCourse EventType = iota + 1 Proseminar MainSeminar Exercise Colloquium AdvancedSeminar Project Propaedeutic SeminarExercise FieldExercise Tutorial Excursion TrainingResearchProject OptionalLecture OptionalSeminar Teleteaching Consulting Miscellaneous WorkingGroup RevisionCourse Workshop LectureExercise LectureSeminar BasicModule PracticalWorkSeminar LecturePracticalWork PracticeModule AdvancedModule LanguageCourse PracticalWork )
const ( Course EventType = 324 + iota CrosssectionalArea MovieScreening Exam Conference ConferenceSymposium MusicalEvent Meeting_ Talk LectureSeries Session OtherEvent CelebrationFestivity Convention ExamTest ServiceTime Exhibition PracticalSemesterAccompanyingEvent Training Tutorial2 Workshop2 Tour Speech InformationSession Course2 OnlineSeminar SeminarExcursion OnlineLecture BasicCourse Sample SummerSchool InauguralLecture Blockage Exercises Consultation EventType = -1 RepeatExam EventType = -2 )
func (EventType) MarshalText ¶
type Fridolin ¶
func (*Fridolin) Buildings ¶
func (f *Fridolin) Buildings() ([]BuildingsBuilding, error)
func (*Fridolin) CertificateOfStudentStatus ¶
func (f *Fridolin) CertificateOfStudentStatus(term Term) (io.ReadCloser, error)
func (*Fridolin) EvaluationOfStudyProgress ¶
func (f *Fridolin) EvaluationOfStudyProgress() (io.ReadCloser, error)
func (*Fridolin) ModuleDescriptions ¶
func (*Fridolin) PaymentInformation ¶
func (f *Fridolin) PaymentInformation() (PaymentInformation, error)
func (*Fridolin) Schedule ¶
func (f *Fridolin) Schedule() ([]ScheduleEvent, error)
func (*Fridolin) SearchEvents ¶
func (f *Fridolin) SearchEvents(s EventSearch, count, offset uint) ([]SearchEvent, error)
type GradeEvent ¶
type GradeExam ¶
type GradeExam struct { Number uint32 `json:"number"` Term Term `json:"term"` Grade float32 `json:"grade,omitempty"` Reason GradeReason `json:"reason"` Try uint8 `json:"try"` ExamDate *taro.Date `json:"examDate"` Examiner string `json:"examiner"` AnnouncementDate taro.Date `json:"announcementDate"` Units []GradeUnit `json:"units"` }
type GradeModule ¶
type GradeReason ¶
type GradeReason uint8
const ( NotAdmitted GradeReason Ungraded Cheating Absent Withdrawal WithdrawalMedical )
func (GradeReason) MarshalText ¶
func (r GradeReason) MarshalText() ([]byte, error)
func (GradeReason) String ¶
func (r GradeReason) String() string
func (*GradeReason) UnmarshalText ¶
func (r *GradeReason) UnmarshalText(b []byte) error
type GradeSubject ¶
type GradeSubject struct {
Modules []GradeModule `json:"modules"`
}
type GradeUnit ¶
type GradeUnit struct { Number uint32 `json:"number"` Name string `json:"name"` Events []GradeEvent `json:"events"` }
type HTML ¶
func (*HTML) MarshalText ¶
type Meeting ¶
type Meeting struct { Type EventType `json:"type,omitempty"` Remark *HTML `json:"remark"` Room *MeetingRoom `json:"room"` Online bool `json:"online"` State MeetingState `json:"state,omitempty"` TimeOffset *uint8 `json:"timeOffset"` FromTime *Time `json:"fromTime"` ToTime *Time `json:"toTime"` Frequency Frequency `json:"frequency"` Weekday time.Weekday `json:"weekday"` FromDate *taro.Date `json:"fromDate"` ToDate *taro.Date `json:"toDate"` }
type MeetingRoom ¶
type MeetingState ¶
type MeetingState uint8
const ( TakingPlace MeetingState Cancelled )
func (MeetingState) MarshalText ¶
func (r MeetingState) MarshalText() ([]byte, error)
func (MeetingState) String ¶
func (s MeetingState) String() string
type Module ¶
type Module struct { Id ModuleId `json:"id"` Number uint32 `json:"number"` Name string `json:"name"` ShortText string `json:"shortText"` Credits uint8 `json:"credits"` Cycle TermCycle `json:"cycle"` WorkloadPrivate uint16 `json:"workloadPrivate"` WorkloadClass uint16 `json:"workloadClass"` Content *HTML `json:"content"` Literature *HTML `json:"literature"` LearningObjectives *HTML `json:"learningObjectives"` ExamPrerequisites *HTML `json:"examPrerequisites"` }
type ModuleRequirement ¶
type PaymentInformation ¶
type PaymentInformation struct { Ticket float32 `json:"ticket"` Studierendenwerk float32 `json:"studierendenwerk"` StudentCouncil float32 `json:"studentCouncil"` Paid float32 `json:"paid"` }
func (PaymentInformation) StillDue ¶
func (p PaymentInformation) StillDue() float32
func (PaymentInformation) Total ¶
func (p PaymentInformation) Total() float32
type Responsibility ¶
type Responsibility uint8
const ( Responsible Responsibility Accompanying Organizational )
func (Responsibility) MarshalText ¶
func (r Responsibility) MarshalText() ([]byte, error)
func (Responsibility) String ¶
func (r Responsibility) String() string
type RoomBuilding ¶
type RoomBuilding struct { Id BuildingId `json:"id"` Name string `json:"name"` }
type ScheduleEvent ¶
type StructureTree ¶
type StructureTree struct { Name string `json:"name"` Children []StructureTree `json:"children,omitempty"` }
Click to show internal directories.
Click to hide internal directories.