package
0.0.0-20230305044514-f50c3911c166
Repository: https://github.com/wvoliveira/corgi.git
Documentation: pkg.go.dev

# Functions

EncodeError generate a response for errors.

# Variables

nolint.
With anonymous access, we can not create a shortener link with same URL.
nolint.
ErrAuthPasswordInternalError when an unkown error happens in auth/password category.
ErrAuthPasswordUserAlreadyExists when anyone try to register with same e-mail.
nolint.
nolint.
nolint.
ErrGroupAlreadyExists error when user try to create a group with a existent group name.
nolint.
nolint.
nolint.
Internal errors.
nolint.
nolint.
nolint.
nolint.
nolint.
ErrLinkNotFound link not found in database.
nolint.
nolint.
nolint.
nolint.
nolint.
ErrRequestNeedBody error if client not send a body payload.
nolint.
nolint.
nolint.
ErrUnauthorized default authentication error.
ErrUserDeleteYourSelf user admin or user with permission with that cannot delete yourself.
ErrUserFromSession when get user from session.
ErrUserNotFound error when user not found in database.
ErrUserNotFoundInContext impossible to get identity or user from context of request.

# Interfaces

Errorer is implemented by all concrete response types that may contain errors.