Documentation ¶
Index ¶
- func CheckAvailableTable(requiredSeats int) int
- func FindBookingByID(idToSearch int) (int, int, int, int)
- func InsertBooking(id int, people int, state int, table int) bool
- func InsertTable(id int, seats int, status int) bool
- func TruncateBookings() error
- func TruncateTables() error
- func UpdateStatusBookingByID(id int, newStatus int) bool
- func UpdateStatusTableByID(id int, newStatus int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAvailableTable ¶
CheckAvailableTable will retrieve the table's id after successful search. In other case, will retrieve a zero.
func FindBookingByID ¶
FindBookingByID will retrieve the values to build a booking after successful search. In other case, will retrieve multiple zeros.
func InsertBooking ¶
InsertBooking will retrieve true after successful insertion. In other case, will retrieve false.
func InsertTable ¶
InsertTable will retrieve true after successful insertion. In other case, will retrieve false.
func TruncateBookings ¶
func TruncateBookings() error
TruncateBookings will retrieve empty error after successful truncate. In other case, will retrieve a filled error.
func TruncateTables ¶
func TruncateTables() error
TruncateTables will retrieve empty error after successful truncate. In other case, will retrieve a filled error.
func UpdateStatusBookingByID ¶
UpdateStatusBookingByID will retrieve true after successful update. In other case, will retrieve false.
func UpdateStatusTableByID ¶
UpdateStatusTableByID will retrieve true after successful update. In other case, will retrieve a zero.
Types ¶
This section is empty.