schedule

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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

func ConvertDayRoomScheduleToText(roomName string, daySchedule types.Day, daysAfterCurr int) string

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

func GetCurrWeekGroupSchedule(groupName string) (*types.Week, error)

GetCurrWeekGroupSchedule returns *types.Week received from the UlSTU site based on the current school week.

func GetCurrWeekGroupScheduleImg

func GetCurrWeekGroupScheduleImg(groupName string) (string, error)

GetCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.

func GetCurrWeekTeacherSchedule

func GetCurrWeekTeacherSchedule(teacherName string) (*types.Week, error)

GetCurrWeekTeacherSchedule return object of current week schedule

func GetCurrWeekTeacherScheduleImg

func GetCurrWeekTeacherScheduleImg(teacherName string) (string, error)

GetCurrWeekTeacherScheduleImg return img of current week schedule

func GetDayGroupSchedule added in v0.9.2

func GetDayGroupSchedule(groupName string, daysAfterCurr int) (*types.Day, error)

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

func GetDayTeacherSchedule(teacherName string, daysAfterCurr int) (*types.Day, error)

GetDayTeacherSchedule returns *types.Day received from the full schedule regarding how many days have passed relative to the current time.

func GetFullGroupSchedule

func GetFullGroupSchedule(groupName string) (*types.Schedule, error)

GetFullGroupSchedule returns the full group's schedule.

func GetFullTeacherSchedule

func GetFullTeacherSchedule(teacher string) (*types.Schedule, error)

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

func GetNextWeekGroupSchedule(groupName string) (*types.Week, error)

GetNextWeekGroupSchedule returns *types.Week received from the UlSTU site based on the next school week.

func GetNextWeekGroupScheduleImg

func GetNextWeekGroupScheduleImg(groupName string) (string, error)

GetNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.

func GetNextWeekTeacherSchedule

func GetNextWeekTeacherSchedule(teacherName string) (*types.Week, error)

GetNextWeekTeacherSchedule return object of next week schedule

func GetNextWeekTeacherScheduleImg

func GetNextWeekTeacherScheduleImg(teacherName string) (string, error)

GetNextWeekTeacherScheduleImg return img of next week schedule

func GetTeachers

func GetTeachers() ([]string, error)

func GetTextDayGroupSchedule added in v0.9.2

func GetTextDayGroupSchedule(groupName string, daysAfterCurr int) (string, error)

GetTextDayGroupSchedule returns a text representation of the day schedule.

func GetTextDayTeacherSchedule added in v0.9.2

func GetTextDayTeacherSchedule(teacherName string, daysAfterCurr int) (string, error)

GetTextDayTeacherSchedule returns a text representation of the day schedule.

func GetWeekGroupSchedule added in v0.9.2

func GetWeekGroupSchedule(groupName string, weekDate time.Time) (*types.Week, error)

GetWeekGroupSchedule returns *types.Week received from the UlSTU site based on the selected school week.

func GetWeekGroupScheduleImg added in v0.9.2

func GetWeekGroupScheduleImg(groupName string, weekDate time.Time, isCurrWeek bool) (string, error)

GetWeekGroupScheduleImg returns the path to the image with the week schedule based on the selected school week.

func GetWeekTeacherSchedule added in v0.9.2

func GetWeekTeacherSchedule(teacherName string, weekDate time.Time) (*types.Week, error)

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

func IsFullScheduleEmpty(s *types.Schedule) bool

IsFullScheduleEmpty returns true if the full schedule is empty, otherwise - false.

func IsWeekScheduleEmpty added in v0.9.7

func IsWeekScheduleEmpty(week types.Week) bool

IsWeekScheduleEmpty returns true if the week schedule is empty, otherwise - false.

func ParseCurrWeekGroupScheduleImg added in v0.9.2

func ParseCurrWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)

ParseCurrWeekGroupScheduleImg returns the path to the image with the week schedule based on the current school week.

func ParseCurrWeekSchedule added in v1.0.4

func ParseCurrWeekSchedule(schedule *types.Schedule, name string) (*types.Week, error)

ParseCurrWeekSchedule returns *types.Week received from *types.Schedule based on the current school week.

func ParseCurrWeekTeacherScheduleImg added in v1.0.4

func ParseCurrWeekTeacherScheduleImg(schedule *types.Week, teacherName string) (string, error)

ParseCurrWeekTeacherScheduleImg returns the path to the image with the week schedule based on the current school week.

func ParseDaySchedule added in v1.0.4

func ParseDaySchedule(schedule *types.Schedule, name string, daysAfterCurr int) (*types.Day, error)

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

func ParseNextWeekGroupScheduleImg(schedule *types.Week, groupName string) (string, error)

ParseNextWeekGroupScheduleImg returns the path to the image with the week schedule based on the next school week.

func ParseNextWeekSchedule added in v1.0.4

func ParseNextWeekSchedule(schedule *types.Schedule, groupName string) (*types.Week, error)

ParseNextWeekSchedule returns *types.Week received from *types.Schedule based on the next school week.

func ParseNextWeekTeacherScheduleImg added in v1.0.4

func ParseNextWeekTeacherScheduleImg(schedule *types.Week, teacherName string) (string, error)

ParseNextWeekTeacherScheduleImg returns the path to the image with the week schedule based on the next school week.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL