Documentation ¶
Index ¶
- Constants
- func GetCookieModes() (bool, http.SameSite)
- func GetSessionOrTokenFromCookie(ctx *gsk.Context) (*http.Cookie, *http.Cookie, error)
- func HandleChangePasswordError(err error, ctx *gsk.Context)
- func HandleCreateGroupError(err error, ctx *gsk.Context)
- func HandleGetAccountError(err error, ctx *gsk.Context)
- func HandleJsonDecodeError(err error, ctx *gsk.Context)
- func HandleLoginError(err error, ctx *gsk.Context)
- func HandleLogoutError(err error, ctx *gsk.Context)
- func HandleRegistrationError(err error, ctx *gsk.Context)
- func HandleValidationError(errorMessages map[string]string, ctx *gsk.Context)
- func ParseLimitAndOffset(limit string, offset string) (limitInt int, offsetInt int, err error)
- func ParseRemoteAddress(remoteAddr string) (ip, port string)
- type AccountListResponse
- type AccountResponse
- type CredentialUpdateRequest
- type GroupResponse
Constants ¶
View Source
const ACCOUNT_EXISTS = "account_already_exists"
Constrains
View Source
const ERROR_UNAUTHORIZED = "unauthorized"
View Source
const INTERNAL_SERVER_ERROR = "internal_server_error"
System
View Source
const INVALID_ACCOUNT_ID = "invalid_account_id"
Admin
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_CHANGED_PASSWORD = "password_changed_successfully"
View Source
const SUCCESS_LOGIN = "login_successful"
View Source
const SUCCESS_LOGOUT = "logout_successful"
View Source
const SUCCESS_RESET_PASSWORD_LINK = "password_reset_link_generated_successfully"
View Source
const VALIDATION_FAILED = "failed_data_validation"
Error message Account input
Variables ¶
This section is empty.
Functions ¶
func GetCookieModes ¶ added in v0.1.2
func HandleChangePasswordError ¶ added in v0.1.2
func HandleCreateGroupError ¶ added in v0.1.2
func HandleGetAccountError ¶ added in v0.1.2
func HandleJsonDecodeError ¶
func HandleLoginError ¶
func HandleLogoutError ¶
func HandleRegistrationError ¶
func HandleValidationError ¶
func ParseLimitAndOffset ¶ added in v0.1.2
func ParseRemoteAddress ¶ added in v0.1.2
Types ¶
type AccountListResponse ¶ added in v0.1.2
type AccountListResponse struct { Total int64 `json:"total"` Data []AccountResponse `json:"data"` }
type AccountResponse ¶ added in v0.1.2
type CredentialUpdateRequest ¶ added in v0.1.2
type GroupResponse ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.