Documentation
¶
Index ¶
- func Booking(class string, date time.Time, slot int, faculty string, subject string) (int64, error)
- func CancelBooking(class string, date time.Time, slot int) error
- func GetAllClass() []string
- func GetAllSlot() []int
- func GetAllSubject() []string
- func GetFreeClass(slot int, date time.Time) []string
- func GetFreeSlot(class string, date time.Time) []int
- func GetTimetableByDay(class string, date time.Time) []string
- func MultiBooking(class string, date time.Time, startSlot int, endSlot int, faculty string, ...) (int64, error)
- func MultiFreeSlot(startSlot int, endSlot int, date time.Time) []string
- type BookingRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllClass ¶
func GetAllClass() []string
func GetAllSlot ¶
func GetAllSlot() []int
func GetAllSubject ¶
func GetAllSubject() []string
func MultiBooking ¶
Types ¶
type BookingRecord ¶
type BookingRecord struct { Class string `json:"class"` Date time.Time `json:"date"` Slot int `json:"slot"` Faculty string `json:"faculty"` Subject string `json:"subject"` }
func GetBooking ¶
func GetBooking(faculty string) []BookingRecord
Click to show internal directories.
Click to hide internal directories.