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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(s storage.Storage) http.HandlerFunc

Handler for HTTP Post - "/users" Create a new Showtime document

func DeleteUser

func DeleteUser(s storage.Storage) http.HandlerFunc

Handler for HTTP Delete - "/users/{id}" Delete a User document by id

func GetLiveness

func GetLiveness() http.HandlerFunc

func GetReadiness

func GetReadiness(s storage.Storage) http.HandlerFunc

func GetUsers

func GetUsers(s storage.Storage) http.HandlerFunc

Handler for HTTP Get - "/users" Returns all User documents

Types

type UserResource

type UserResource struct {
	Data model.User `json:"data"`
}

For Post/Put - /users

type UsersResource

type UsersResource struct {
	Data []model.User `json:"data"`
}

For Get - /users

Jump to

Keyboard shortcuts

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