Documentation ¶
Index ¶
Constants ¶
View Source
const (
API_KEY_HEADER = "X-API-Key"
)
Variables ¶
View Source
var ( ErrServer = errors.New("Something went wrong") ErrUrlPathParameter = errors.New("Invalid url path parameter") ErrUrlQueryParameter = errors.New("Invalid url query parameter") ErrRequestBody = errors.New("Invalid request body") ErrFieldValidation = errors.New("Field is not valid") ErrAccountNotFound = errors.New("Account not found") ErrEmailRegistered = errors.New("Email already in use") ErrEmailNotRegistered = errors.New("Email not registered") ErrWrongPassword = errors.New("Password incorrect") ErrPostNotFound = errors.New("Post not found") )
Functions ¶
func NewErrFieldValidation ¶
func NewErrFieldValidation(err validator.FieldError) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.