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