Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError struct { Error string `json:"error"` Status int `json:"status"` Message string `json:"message"` }
func NewBadRequestError ¶
func NewNotFoundError ¶
func NewUnauthorizedError ¶
func NewUnauthorizedError() *AppError
type ValidationErrorResponse ¶
type ValidationErrorResponse struct { FailedField string `json:"field"` Tag string `json:"tag"` Value string `json:"value"` }
func Validation ¶
func Validation(err interface{}) []*ValidationErrorResponse
Click to show internal directories.
Click to hide internal directories.