Documentation
¶
Overview ¶
Package rest provides utilities shared across the gateway and scheduler adapters to build REST APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorInternal ¶
func ErrorInternal(res http.ResponseWriter, req *http.Request)
ErrorInternal handles HTTP 500 error responses. When called, the calling function must return to avoid writing several times on the HTTP response writer.
func ErrorNotFound ¶
func ErrorNotFound(res http.ResponseWriter, req *http.Request)
ErrorNotFound handles HTTP 404 error responses. When called, the calling function must return to avoid writing several times on the HTTP response writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.