Documentation ¶
Index ¶
Constants ¶
View Source
const ( AttrScope = "scope" AttrAud = "audience" AttrCapability = "capability" )
Defined attributes
Variables ¶
View Source
var Attributes = []string{ AttrScope, AttrAud, AttrCapability, }
Attributes holds all defined attributes
View Source
var ResponseNYI = Response{Status: fiber.StatusNotImplemented, Response: api.APIErrorNYI}
ResponseNYI is the server response when something is not yet implemented
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { // The Http Status code of the response Status int // The response body, will be marshalled as json Response interface{} // Cookies that should be set Cookies []*fiber.Cookie }
Response models a http server response
func ErrorToBadRequestErrorResponse ¶
ErrorToBadRequestErrorResponse creates a bad request error response from a golang error
func ErrorToInternalServerErrorResponse ¶
ErrorToInternalServerErrorResponse creates an internal server error response from a golang error
Click to show internal directories.
Click to hide internal directories.