Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBooking ¶
CreateBooking - creates a booking and saves in db func CreateBooking(w http.ResponseWriter, r *http.Request) {
func DeleteBooking ¶
DeleteBooking handles the call to delete in booking service Returns the given id, the booking that was the value of that id and an error interface
func GetBooking ¶
GetBooking - Handle to fetch booking in db.
func UpdateBooking ¶
UpdateBooking updates a booking by calling bookingservice.UpdateBooking. takes a JSON file, return result and an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.