Documentation
¶
Index ¶
- Constants
- func GetSessionOrTokenFromCookie(ctx stk.Context) (*http.Cookie, *http.Cookie, error)
- func HandleJsonDecodeError(err error, ctx stk.Context)
- func HandleLoginError(err error, ctx stk.Context)
- func HandleLogoutError(err error, ctx stk.Context)
- func HandleRegistrationError(err error, ctx stk.Context)
- func HandleValidationError(errorMessages map[string]string, ctx stk.Context)
- type UserResponse
Constants ¶
View Source
const ERROR_UNAUTHORIZED = "unauthorized"
View Source
const INTERNAL_SERVER_ERROR = "internal_server_error"
System
View Source
const INVALID_BODY = "invalid_request_body"
View Source
const INVALID_CREDENTIALS = "invalid_credentials"
View Source
const SESSION_EXISTS = "session_already_exists"
View Source
const SUCCESS_LOGIN = "login_successful"
View Source
const SUCCESS_LOGOUT = "logout_successful"
View Source
const USER_EXISTS = "user_already_exists"
Constrains
View Source
const VALIDATION_FAILED = "failed_data_validation"
Error message User input
Variables ¶
This section is empty.
Functions ¶
func HandleJsonDecodeError ¶
func HandleLoginError ¶
func HandleLogoutError ¶
func HandleRegistrationError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.