Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTokenError = errors.New("Invalid token")
View Source
var MalformedTokenMessage = "The provided token does not meet the required format"
View Source
var MissingTokenMessage = "No Authorization token was provided"
Functions ¶
This section is empty.
Types ¶
type ErrorStructure ¶
type ErrorStructure struct {
Errors []IndividualError `json:"errors"`
}
func ErrorResponseBodyBuilder ¶
func ErrorResponseBodyBuilder(listOfErrors []IndividualError) (errorResponseBody ErrorStructure)
type IndividualError ¶
type IndividualError struct {
SpecificError string `json:"error"`
Message string `json:"message"`
Source Source `json:"source"`
}
func IndividualErrorBuilder ¶
func IndividualErrorBuilder(err error, message, sourceField, sourceParam string) (individualError IndividualError)
Click to show internal directories.
Click to hide internal directories.