httphandler

package
v0.0.0-...-a59a69c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBooking

func CreateBooking(s storage.Storage) http.HandlerFunc

Handler for HTTP Post - "/bookings" Create a new Booking document

func DeleteBooking

func DeleteBooking(s storage.Storage) http.HandlerFunc

Handler for HTTP Delete - "/bookins" Delete a new Booking document

func GetBookings

func GetBookings(s storage.Storage) http.HandlerFunc

Handler for HTTP Get - "/bookings" Get all Bookings

func GetLiveness

func GetLiveness() http.HandlerFunc

func GetReadiness

func GetReadiness(s storage.Storage) http.HandlerFunc

Types

type BookingResource

type BookingResource struct {
	Data model.Booking `json:"data"`
}

For Post/Put - /bookings

type BookingsResource

type BookingsResource struct {
	Data []model.Booking `json:"data"`
}

For Get - /bookings

Jump to

Keyboard shortcuts

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