Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAuth = &AuthMethod{
ID: 1,
TTL: 6000,
RefreshTTL: 3600,
}
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶
func GetAuthMethod ¶
func GetAuthMethod(ID int) *AuthMethod
type AuthenticationMatrix ¶
type AuthenticationMatrix struct { models.BaseModelSoftDelete UserID int `gorm:"not null;index:user_auth_matrix_idx" db:"user_id"` User user.User `gorm:"-"` AuthMethodID int `gorm:"not null" db:"auth_method_id"` AuthMethod AuthMethod `gorm:"-"` Token string `gorm:"not null" db:"token"` }
func (*AuthenticationMatrix) BeforeCreate ¶
func (toCreate *AuthenticationMatrix) BeforeCreate(db *gorm.DB) (err error)
Click to show internal directories.
Click to hide internal directories.