schedule

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 19 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 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 GetDayGroupScheduleByDate added in v0.9.2

func GetDayGroupScheduleByDate(groupName, date string) (*types.Day, error)

GetDayGroupScheduleByDate returns *types.Day received from the UlSTU site based on the string representation of the date.

func GetDayGroupScheduleByWeekDay added in v0.9.2

func GetDayGroupScheduleByWeekDay(groupName, weekDay string) (*types.Day, error)

GetDayGroupScheduleByWeekDay returns *types.Day received from the UlSTU site based on the selected day of the current week.

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 GetDayTeacherScheduleByDate added in v0.9.2

func GetDayTeacherScheduleByDate(teacherName, date string) (*types.Day, error)

GetDayTeacherScheduleByDate returns *types.Day received from the full schedule based on the string representation of the date.

func GetDayTeacherScheduleByWeekDay added in v0.9.2

func GetDayTeacherScheduleByWeekDay(teacherName, weekDay string) (*types.Day, error)

GetDayTeacherScheduleByWeekDay returns *types.Day received from the full schedule based on the selected day of the current week.

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 GetImgByWeekGroupSchedule added in v0.9.2

func GetImgByWeekGroupSchedule(schedule *types.Week, groupName string, weekNum int) (string, error)

GetImgByWeekGroupSchedule returns the path to the image with the week schedule based on the week schedule of the group, the name of the group and the selected school week.

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 GetTextDayGroupScheduleByDate added in v0.9.2

func GetTextDayGroupScheduleByDate(groupName, inputDate string) (string, error)

GetTextDayGroupScheduleByDate returns a text representation of the day schedule based on the the string representation of the date.

func GetTextDayGroupScheduleByWeekDay added in v0.9.2

func GetTextDayGroupScheduleByWeekDay(groupName, weekDay string) (string, error)

GetTextDayGroupScheduleByWeekDay returns a text representation of the day schedule based on the selected day of the current week.

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 GetTextDayTeacherScheduleByDate added in v0.9.2

func GetTextDayTeacherScheduleByDate(teacherName, inputDate string) (string, error)

GetTextDayTeacherScheduleByDate returns a text representation of the day schedule based on the the string representation of the date.

func GetTextDayTeacherScheduleByWeekDay added in v0.9.2

func GetTextDayTeacherScheduleByWeekDay(teacherName, weekDay string) (string, error)

GetTextDayTeacherScheduleByWeekDay returns a text representation of the day schedule based on the selected day of the current week.

func GetWeekGroupSchedule added in v0.9.2

func GetWeekGroupSchedule(groupName string, weekNum int) (*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, weekNum int) (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, weekNum int) (*types.Week, error)

GetWeekTeacherSchedule return object of week schedule

func GetWeekTeacherScheduleImg added in v0.9.2

func GetWeekTeacherScheduleImg(teacherName string, weekNum int) (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 ParseCurrWeekGroupSchedule added in v0.9.2

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

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

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 ParseDayGroupSchedule added in v0.9.2

func ParseDayGroupSchedule(schedule *types.Schedule, groupName string, daysAfterCurr int) (*types.Day, error)

ParseDayGroupSchedule returns *types.Day received from types.Schedule regarding how many days have passed relative to the current time.

func ParseDayGroupScheduleByDate added in v0.9.2

func ParseDayGroupScheduleByDate(schedule *types.Schedule, groupName string, date string) (*types.Day, error)

ParseDayGroupScheduleByDate returns *types.Day received from types.Schedule based on the string representation of the date.

func ParseDayGroupScheduleByWeekDay added in v0.9.2

func ParseDayGroupScheduleByWeekDay(schedule *types.Schedule, groupName string, weekDay string) (*types.Day, error)

ParseDayGroupScheduleByWeekDay returns *types.Day received from types.Schedule based on the selected day of the current week.

func ParseNextWeekGroupSchedule added in v0.9.2

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

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

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 ParseTeacherWeekSchedule added in v0.9.9

func ParseTeacherWeekSchedule(schedule *types.Week, teacherName string, weekNum int) (string, error)

ParseTeacherWeekSchedule return path on img of schedule

func ParseWeekGroupSchedule added in v0.9.2

func ParseWeekGroupSchedule(schedule *types.Schedule, groupName string, weekNum int) (*types.Week, error)

ParseWeekGroupSchedule returns *types.Week received from *types.Schedule based on the selected 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