Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskOccupation ¶
AskOccupation asks control server for classroom occupation. Returns a string with the output. Returns an empty string in case of error
func GetClassroomsOccupation ¶
func GetClassroomsOccupation(server, command string) *models.Occupation
GetClassroomsOccupation returns a struct with classrooms occupations statistics
func GetClassroomsStatus ¶
func GetClassroomsStatus(reservations []*models.Reservation) *models.Classrooms
GetClassroomsStatus returns a struct whit classroom status Valid status are: 0 - free, 1 - occupied, 2 - will be occupied in the next 30 minutes, 3 - will be occupied in the next 10 minutes
func GetTodayReservations ¶
func GetTodayReservations(url string) []*models.Reservation
GetTodayReservations returns a slice of pointers to models.Reservation struct with today reservations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.