Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Timestamp time.Time `json:"timestamp" binding:"required"` Message string `json:"message" binding:"required"` Status int `json:"status" binding:"required,min=400,max=599"` Path string `json:"path" format:"url_path" binding:"required" example:"/api/v0/example"` }
func NewErrorResponse ¶
func NewErrorResponse(message string, status int, path string) ErrorResponse
func NewErrorResponseFromError ¶
func NewErrorResponseFromError(error error, status int, path string) ErrorResponse
type I18nError ¶
type I18nError struct {
// contains filtered or unexported fields
}
func NewI18nError ¶
func NewI18nErrorWithArgs ¶
Click to show internal directories.
Click to hide internal directories.