helpers

package
v0.0.0-...-4cc5237 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeViper

func InitializeViper() (err error)

Types

type RequestError

type RequestError struct {
	StatusCode int

	Err error
}

func ExtractGetRequestBody

func ExtractGetRequestBody(c *gin.Context, req interface{}) (err *RequestError)

func ExtractPostRequestBody

func ExtractPostRequestBody(c *gin.Context, req interface{}) (err *RequestError)

func RaiseCannotParseClaims

func RaiseCannotParseClaims() *RequestError

func RaiseCannotParseJson

func RaiseCannotParseJson() *RequestError

func RaiseCannotParseRequest

func RaiseCannotParseRequest() *RequestError

func RaiseCannotSaveUserInDatabase

func RaiseCannotSaveUserInDatabase() *RequestError

func RaiseDatabaseError

func RaiseDatabaseError() *RequestError

func RaiseExistentAccount

func RaiseExistentAccount() *RequestError

func RaiseExpiredToken

func RaiseExpiredToken() *RequestError

func RaiseFailureEmailSend

func RaiseFailureEmailSend() *RequestError

func RaiseFailureGenerateClaim

func RaiseFailureGenerateClaim() *RequestError

func RaiseInitFailure

func RaiseInitFailure() *RequestError

func RaiseInvalidAuthorizationMethod

func RaiseInvalidAuthorizationMethod() *RequestError

func RaiseInvalidEmail

func RaiseInvalidEmail() *RequestError

func RaiseInvalidToken

func RaiseInvalidToken() *RequestError

func RaiseInvalidTokenFormat

func RaiseInvalidTokenFormat() *RequestError

func RaiseLoginExpired

func RaiseLoginExpired() *RequestError

func RaiseNoAuthorizationHeader

func RaiseNoAuthorizationHeader() *RequestError

func RaiseNonExistentAccount

func RaiseNonExistentAccount() *RequestError

func RaiseNotVerified

func RaiseNotVerified() *RequestError

func RaiseUnauthorizedAccess

func RaiseUnauthorizedAccess() *RequestError

func RaiseUserNotInDatabase

func RaiseUserNotInDatabase() *RequestError

func RaiseValidationErrorJson

func RaiseValidationErrorJson() *RequestError

func RaiseWrongLoginCredentials

func RaiseWrongLoginCredentials() *RequestError

func RaiseWrongValidation

func RaiseWrongValidation() *RequestError

func (*RequestError) Error

func (r *RequestError) Error() string

Jump to

Keyboard shortcuts

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