Documentation ¶
Index ¶
- Variables
- func Guard(next http.Handler) http.Handler
- func Headers(r *http.Request) (string, string)
- type LogInDto
- type LoginResult
- type Message
- type ReCaptchaResponse
- type RefreshResult
- type ResetPasswordDto
- type SignUpCode
- type SignUpData
- type SignUpDto
- type SignUpResult
- type UpdatePasswordDto
- type UserData
- type UserPswd
Constants ¶
This section is empty.
Variables ¶
View Source
var Controller = authHandler()
View Source
var GetAuthUser = &getAuthUser{db: &db.Instance}
View Source
var LogIn = &logIn{db: &db.Instance}
View Source
var LogOut = &logOut{db: &db.Instance}
View Source
var Refresh = &refresh{db: &db.Instance}
View Source
var ResetPassword = &resetPassword{db: &db.Instance}
View Source
var SignUp = &signUp{db: &db.Instance}
View Source
var UpdatePassword = &updatePassword{db: &db.Instance}
View Source
var VerifySignup = &verifySignup{db: &db.Instance}
Functions ¶
Types ¶
type LoginResult ¶
type ReCaptchaResponse ¶
type RefreshResult ¶
type RefreshResult struct {
AccessToken string `json:"accessToken"`
}
type ResetPasswordDto ¶
type ResetPasswordDto struct {
Email string `json:"email"`
}
type SignUpCode ¶
type SignUpCode struct {
Code int `json:"code"`
}
type SignUpData ¶
type SignUpResult ¶
type UpdatePasswordDto ¶
type UserData ¶
type UserData struct { ID *int `json:"id"` Email *string `json:"email"` FirstName *string `json:"firstName"` LastName *string `json:"lastName"` Phone *string `json:"phone"` Avatar *string `json:"avatar"` Access *string `json:"access"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` }
-- User ------------------------------------------------------------------------
Click to show internal directories.
Click to hide internal directories.