handlers

package
v0.0.0-...-a30d32d Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBooking

func CreateBooking() (string, error)

CreateBooking - creates a booking and saves in db func CreateBooking(w http.ResponseWriter, r *http.Request) {

func DeleteBooking

func DeleteBooking(id string) (string, []byte, error)

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

func GetBooking(id string) ([]byte, error)

GetBooking - Handle to fetch booking in db.

func UpdateBooking

func UpdateBooking(data []byte) (string, error)

UpdateBooking updates a booking by calling bookingservice.UpdateBooking. takes a JSON file, return result and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL