handlers

package
v0.0.0-...-5fa07e8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReservation

func CreateReservation(c echo.Context) error

func CreateRoom

func CreateRoom(c echo.Context) error

func GetReservationByRoom

func GetReservationByRoom(c echo.Context) error

func GetReservations

func GetReservations(c echo.Context) error

func GetRoom

func GetRoom(c echo.Context) error

func GetRooms

func GetRooms(c echo.Context) error

Types

type ErrorResponse

type ErrorResponse struct {
	Error ErrorResponseBody `json:"error"`
}

type ErrorResponseBody

type ErrorResponseBody struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Status  string `json:"status"`
}

type Response

type Response struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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