controller

package
v0.0.0-...-9ede961 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(responseWriter http.ResponseWriter, request *http.Request)

Create new user and save in a repository and set location

func DeleteUser

func DeleteUser(responseWriter http.ResponseWriter, request *http.Request)

Delete user by param id

func GetAnUser

func GetAnUser(responseWriter http.ResponseWriter, request *http.Request)

show an user

func GetUsers

func GetUsers(responseWriter http.ResponseWriter, _ *http.Request)

Show all users in a repository

func HealthCheck

func HealthCheck(responseWriter http.ResponseWriter, _ *http.Request)

show health check status UP and set status code 200 OK if error print log and set status 500 Internal Server Error

func Home

func Home(responseWriter http.ResponseWriter, _ *http.Request)

show friendly message

func UpdateUser

func UpdateUser(responseWriter http.ResponseWriter, request *http.Request)

Update user using parameter id and attributes inside body

Types

This section is empty.

Jump to

Keyboard shortcuts

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