constant

package
v0.0.0-...-b3de175 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 3 Imported by: 0

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")
	ErrUnauthorized      = errors.New("You are not authorized to perform this action")
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL