Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleEntity ¶
func HandleEntity(entity interface{}, err error) restful.RouteFunction
This utility function checks if an error is a "NotFound" and returns a HTTP NotFound to the caller. If it is another error it returns in internal server error.
func HandleError ¶
func HandleError(err error, response *restful.Response)
Wraps the error in a json document.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.