Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnableToValidateUser = errors.New("Unable to validate user")
)
Functions ¶
func DeleteUser ¶
func GetUserCount ¶
func UpdateUser ¶
func UsernameExists ¶
Types ¶
type Controller ¶
type Controller struct{}
func (*Controller) GetAccount ¶
func (controller *Controller) GetAccount(c *gin.Context)
type TwoFactor ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"` Username string `gorm:"unique;not null" json:"username,omitempty"` Password string `json:"-"` Active bool `json:"active,omitempty"` LastLoginAt *time.Time `json:"lastlogin_at,omitempty"` DeletedAt *time.Time `sql:"index" json:"deleted_at,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` UpdatedAt *time.Time `json:"update_at,omitempty"` Addresses []model.Address `json:"addresses,omitempty"` TwoFactor *TwoFactor `json:"two_factor,omitempty"` }
func GetUserByClaim ¶
func (*User) TwoFactorActive ¶
func (*User) TwoFactorExists ¶
Click to show internal directories.
Click to hide internal directories.