Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidString is a message to be displayed to user wrapped in error ErrInvalidString error )
Functions ¶
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, r *http.Request)
HealthHandler displays health status of the service. Status NoContent (204) is returned if service is working as expected. Status InternalServerError (500) is returned in case of general errors.
func HelloHandler ¶
func HelloHandler(w http.ResponseWriter, r *http.Request)
HelloHandler says hello Status OK (200) is returned for successfuly saying hello. Status NotAcceptable (406) is returned for unacceptable input. Status UnprocessableEntity (422) is returned for invalid input. Status InternalServerError (500) is returned in case of general errors.
Types ¶
Click to show internal directories.
Click to hide internal directories.