Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPasswordCost = 12 DefaultExpirationDelta = 30 * 24 * time.Hour )
Variables ¶
View Source
var ( True = true False = false )
Functions ¶
This section is empty.
Types ¶
type Model ¶ added in v0.0.19
type User ¶ added in v0.0.19
type User struct { Model Username *string `json:"username" gorm:"unique;not null;"` Password string `json:"password" gorm:"-"` PasswordHash []byte `json:"-" gorm:"not null;"` }
func RandomUser ¶ added in v0.0.19
func RandomUser() *User
func (*User) Authenticate ¶ added in v0.0.19
func (*User) FromClaims ¶ added in v0.0.19
Click to show internal directories.
Click to hide internal directories.