Documentation
¶
Index ¶
- Variables
- func BadRequest(err error) error
- func Conflict(err error) error
- func Equals(err error, expectedErr error) bool
- func Forbidden(err error) error
- func GatewayTimeout(err error) error
- func InternalServerError(err error) error
- func NotFound(err error) error
- func Unauthorized(err error) error
- type AppError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmailAlreadyExist = errors.New("email already exist") ErrInvalidUserType = errors.New("invalid user_type") ErrInvalidPassword = errors.New("invalid password") ErrFailedGenerateJWT = errors.New("failed generate access token") ErrInvalidIsActive = errors.New("invalid is_active") ErrStatusValue = errors.New("status should be 0 or 1") ErrFailedGetTokenInformation = errors.New("failed to get token information") )
Functions ¶
func BadRequest ¶ added in v0.0.8
func GatewayTimeout ¶ added in v0.0.8
func InternalServerError ¶ added in v0.0.8
func Unauthorized ¶ added in v0.0.8
Types ¶
Click to show internal directories.
Click to hide internal directories.