Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestError ¶
type RestError struct { Message string `json:"message"` Status int `json:"status"` Error string `json:"error"` Causes []interface{} `json:"causes"` }
RestError - Struct for handling errors and having like a template
func NewBadRequestError ¶
NewBadRequestError - Function to create bad request errors like factory
func NewInternalServerError ¶
NewInternalServerError - Function to create 500 errors
func NewNotFoundError ¶
NewNotFoundError - Function to create not found errors
Click to show internal directories.
Click to hide internal directories.