Documentation
¶
Index ¶
- func APIClientDoesntExist(w http.ResponseWriter)
- func AttemptTimedOut(w http.ResponseWriter)
- func Duplicate(w http.ResponseWriter)
- func InternalServerError(w http.ResponseWriter)
- func InvalidCredentials(w http.ResponseWriter)
- func InvalidRootTrustClient(w http.ResponseWriter)
- func MalformedBody(w http.ResponseWriter)
- func MaxAttemptsReached(w http.ResponseWriter)
- func MissingField(w http.ResponseWriter, field string)
- func MissingPermission(w http.ResponseWriter, scope string)
- func NotFound(w http.ResponseWriter)
- func OTPAlreadyEnabled(w http.ResponseWriter)
- func UserDoesntExist(w http.ResponseWriter)
- func WrongContentType(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIClientDoesntExist ¶
func APIClientDoesntExist(w http.ResponseWriter)
APIClientDoesntExist means that the api client doesnt exist
func AttemptTimedOut ¶
func AttemptTimedOut(w http.ResponseWriter)
AttemptTimedOut means that the attempt response was not recieved in time
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter)
InternalServerError is when the server broke something
func InvalidCredentials ¶
func InvalidCredentials(w http.ResponseWriter)
InvalidCredentials means that the supplied credentials are not correct
func InvalidRootTrustClient ¶
func InvalidRootTrustClient(w http.ResponseWriter)
InvalidRootTrustClient means that the supplied root trust client (credentials) are not correct
func MalformedBody ¶
func MalformedBody(w http.ResponseWriter)
MalformedBody means that the body supplied is not correct
func MaxAttemptsReached ¶
func MaxAttemptsReached(w http.ResponseWriter)
MaxAttemptsReached means that the maximum attempts have been reached
func MissingField ¶
func MissingField(w http.ResponseWriter, field string)
MissingField means that the content is missing a field
func MissingPermission ¶
func MissingPermission(w http.ResponseWriter, scope string)
MissingPermission means that the token is missing a permission
func OTPAlreadyEnabled ¶
func OTPAlreadyEnabled(w http.ResponseWriter)
OTPAlreadyEnabled means otp is already enabled
func UserDoesntExist ¶
func UserDoesntExist(w http.ResponseWriter)
UserDoesntExist means that the user doesnt exist
func WrongContentType ¶
func WrongContentType(w http.ResponseWriter)
WrongContentType is the error for when the wrong content type was supplied
Types ¶
This section is empty.