Documentation ¶
Index ¶
- func ConvertDayGroupScheduleToText(daySchedule *types.Day, groupName string, daysAfterCurr int) string
- func ConvertDayRoomScheduleToText(roomName string, daySchedule types.Day, daysAfterCurr int) string
- func ConvertDayTeacherScheduleToText(teacherName string, daySchedule types.Day, daysAfterCurr int) string
- func GetCurrWeekGroupSchedule(groupName string) (*types.Week, error)
- func GetCurrWeekGroupScheduleImg(groupName string) (string, error)
- func GetCurrWeekTeacherSchedule(teacherName string) (*types.Week, error)
- func GetCurrWeekTeacherScheduleImg(teacherName string) (string, error)
- func GetDayGroupSchedule(groupName string, daysAfterCurr int) (*types.Day, error)
- func GetDayTeacherSchedule(teacherName string, daysAfterCurr int) (*types.Day, error)
- func GetFullGroupSchedule(groupName string) (*types.Schedule, error)
- func GetFullTeacherSchedule(teacher string) (*types.Schedule, error)
- func GetGroups() []string
- func GetImgByWeekSchedule(schedule *types.Week, name string, isCurrWeek bool, headingFontSize float64, ...) (string, error)
- func GetNextWeekGroupSchedule(groupName string) (*types.Week, error)
- func GetNextWeekGroupScheduleImg(groupName string) (string, error)
- func GetNextWeekTeacherSchedule(teacherName string) (*types.Week, error)
- func GetNextWeekTeacherScheduleImg(teacherName string) (string, error)
- func GetTeachers() ([]string, error)
- func GetTextDayGroupSchedule(groupName string, daysAfterCurr int) (string, error)
- func GetTextDayTeacherSchedule(teacherName string, daysAfterCurr int) (string, error)
- func GetWeekGroupSchedule(groupName string, weekDate time.Time) (*types.Week, error)
- func GetWeekGroupScheduleImg(groupName string, weekDate time.Time, isCurrWeek bool) (string, error)
- func GetWeekTeacherSchedule(teacherName string, weekDate time.Time) (*types.Week, error)
- func GetWeekTeacherScheduleImg(teacherName string, weekDate time.Time, isCurrWeek bool) (string, error)
- func IsFullScheduleEmpty(s *types.Schedule) bool
- func IsWeekScheduleEmpty(week types.Week) bool
- func ParseCurrWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)
- func ParseCurrWeekSchedule(schedule *types.Schedule, name string) (*types.Week, error)
- func ParseCurrWeekTeacherScheduleImg(schedule *types.Week, teacherName string) (string, error)
- func ParseDaySchedule(schedule *types.Schedule, name string, daysAfterCurr int) (*types.Day, error)
- func ParseNextWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)
- func ParseNextWeekSchedule(schedule *types.Schedule, groupName string) (*types.Week, error)
- func ParseNextWeekTeacherScheduleImg(schedule *types.Week, teacherName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDayGroupScheduleToText ¶ added in v0.9.2
func ConvertDayGroupScheduleToText(daySchedule *types.Day, groupName string, daysAfterCurr int) string
ConvertDayGroupScheduleToText converts the information that *types.Day contains into text.
func ConvertDayRoomScheduleToText ¶ added in v1.0.4
ConvertDayRoomScheduleToText converts the information that types.Day contains into text.
func ConvertDayTeacherScheduleToText ¶ added in v1.0.4
func ConvertDayTeacherScheduleToText(teacherName string, daySchedule types.Day, daysAfterCurr int) string
ConvertDayTeacherScheduleToText converts the information that types.Day contains into text.
func GetCurrWeekGroupSchedule ¶
GetCurrWeekGroupSchedule returns *types.Week received from the UlSTU site based on the current school week.
func GetCurrWeekGroupScheduleImg ¶
GetCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.
func GetCurrWeekTeacherSchedule ¶
GetCurrWeekTeacherSchedule return object of current week schedule
func GetCurrWeekTeacherScheduleImg ¶
GetCurrWeekTeacherScheduleImg return img of current week schedule
func GetDayGroupSchedule ¶ added in v0.9.2
GetDayGroupSchedule returns *types.Day received from the UlSTU site regarding how many days have passed relative to the current time.
func GetDayTeacherSchedule ¶ added in v0.9.2
GetDayTeacherSchedule returns *types.Day received from the full schedule regarding how many days have passed relative to the current time.
func GetFullGroupSchedule ¶
GetFullGroupSchedule returns the full group's schedule.
func GetFullTeacherSchedule ¶
GetFullTeacherSchedule returns the full teacher's schedule.
func GetGroups ¶
func GetGroups() []string
GetGroups returns all available group names from UlSTU site.
func GetImgByWeekSchedule ¶ added in v1.0.4
func GetImgByWeekSchedule( schedule *types.Week, name string, isCurrWeek bool, headingFontSize float64, drawLessonForWeekSchedule func(lesson *types.Lesson, x float64, y float64, dc *gg.Context)) (string, error)
GetImgByWeekSchedule return path on img of schedule
func GetNextWeekGroupSchedule ¶
GetNextWeekGroupSchedule returns *types.Week received from the UlSTU site based on the next school week.
func GetNextWeekGroupScheduleImg ¶
GetNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.
func GetNextWeekTeacherSchedule ¶
GetNextWeekTeacherSchedule return object of next week schedule
func GetNextWeekTeacherScheduleImg ¶
GetNextWeekTeacherScheduleImg return img of next week schedule
func GetTeachers ¶
func GetTextDayGroupSchedule ¶ added in v0.9.2
GetTextDayGroupSchedule returns a text representation of the day schedule.
func GetTextDayTeacherSchedule ¶ added in v0.9.2
GetTextDayTeacherSchedule returns a text representation of the day schedule.
func GetWeekGroupSchedule ¶ added in v0.9.2
GetWeekGroupSchedule returns *types.Week received from the UlSTU site based on the selected school week.
func GetWeekGroupScheduleImg ¶ added in v0.9.2
GetWeekGroupScheduleImg returns the path to the image with the week schedule based on the selected school week.
func GetWeekTeacherSchedule ¶ added in v0.9.2
GetWeekTeacherSchedule return object of week schedule
func GetWeekTeacherScheduleImg ¶ added in v0.9.2
func GetWeekTeacherScheduleImg(teacherName string, weekDate time.Time, isCurrWeek bool) (string, error)
GetWeekTeacherScheduleImg return path on img of schedule
func IsFullScheduleEmpty ¶ added in v0.9.7
IsFullScheduleEmpty returns true if the full schedule is empty, otherwise - false.
func IsWeekScheduleEmpty ¶ added in v0.9.7
IsWeekScheduleEmpty returns true if the week schedule is empty, otherwise - false.
func ParseCurrWeekGroupScheduleImg ¶ added in v0.9.2
ParseCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.
func ParseCurrWeekSchedule ¶ added in v1.0.4
ParseCurrWeekSchedule returns *types.Week received from *types.Schedule based on the current school week.
func ParseCurrWeekTeacherScheduleImg ¶ added in v1.0.4
ParseCurrWeekTeacherScheduleImg returns the path to the image with the week schedule based on the current school week.
func ParseDaySchedule ¶ added in v1.0.4
ParseDaySchedule returns *types.Day received from types.Schedule regarding how many days have passed relative to the current time.
func ParseNextWeekGroupScheduleImg ¶ added in v0.9.2
ParseNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.
func ParseNextWeekSchedule ¶ added in v1.0.4
ParseNextWeekSchedule returns *types.Week received from *types.Schedule based on the next school week.
Types ¶
This section is empty.