Documentation ¶
Index ¶
- Constants
- func AtLeastOneDex() error
- func BadAuthHeaderFormat() error
- func CannotParseToken() error
- func EmptyRequestBody() error
- func EmptySlug() error
- func ExistingDex() error
- func ExistingUsername() error
- func Forbidden(action string) error
- func GameDexTypeMismatch() error
- func InvalidJWT() error
- func InvalidJWTSignature() error
- func InvalidPassword() error
- func IsPGDeadlockDetected(err error) bool
- func IsPGUniqueViolation(err error) bool
- func IsPGUserCancel(err error) bool
- func MalformedPayload() error
- func MissingAuthentication() error
- func NotFound(resource string) error
- func UnknownParameter(param string) error
- func UnsupportedMediaType() error
- func ValidationError(msg string) error
- func ValidationTypeError(msg string) error
- type Error
- type Handler
Constants ¶
View Source
const ( PGDeadlockDetectedCode = "40P01" PGUniqueViolationCode = "23505" PGUserCancel = "57014" )
Constants for Postgres error codes as found here: https://www.postgresql.org/docs/10/static/errcodes-appendix.html.
Variables ¶
This section is empty.
Functions ¶
func AtLeastOneDex ¶
func AtLeastOneDex() error
func BadAuthHeaderFormat ¶
func BadAuthHeaderFormat() error
func CannotParseToken ¶
func CannotParseToken() error
func EmptyRequestBody ¶
func EmptyRequestBody() error
func ExistingDex ¶
func ExistingDex() error
func ExistingUsername ¶
func ExistingUsername() error
func GameDexTypeMismatch ¶
func GameDexTypeMismatch() error
func InvalidJWT ¶
func InvalidJWT() error
func InvalidJWTSignature ¶
func InvalidJWTSignature() error
func InvalidPassword ¶
func InvalidPassword() error
func IsPGDeadlockDetected ¶
func IsPGUniqueViolation ¶
func IsPGUserCancel ¶
func MalformedPayload ¶
func MalformedPayload() error
func MissingAuthentication ¶
func MissingAuthentication() error
func UnknownParameter ¶
func UnsupportedMediaType ¶
func UnsupportedMediaType() error
func ValidationError ¶
func ValidationTypeError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.