Documentation ¶
Index ¶
- type AppError
- func AlreadyExist(message string) *AppError
- func BadRequest(message string) *AppError
- func Forbidden(message string) *AppError
- func InternalServer(message string) *AppError
- func NotFound(message string) *AppError
- func Unauthorized(message string) *AppError
- func UnprocessableEntity(message string) *AppError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError struct { Message string `json:"message"` Error string `json:"error"` Status int `json:"status"` }
func AlreadyExist ¶
func BadRequest ¶
func InternalServer ¶
func Unauthorized ¶
func UnprocessableEntity ¶
Click to show internal directories.
Click to hide internal directories.