Documentation
¶
Overview ¶
Package models defines all the database models for the application
Index ¶
Constants ¶
View Source
const ( // TokenUserActivation is a constant used to identify tokens used for user activation TokenUserActivation string = "user_activation" // TokenPasswordReset is a constant used to identify tokens used for password resets TokenPasswordReset string = "password_reset" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
Session holds information about user sessions and when they expire
func (Session) HasExpired ¶
HasExpired is a helper function that checks if the current time is after the session expire datetime
type Token ¶
type Token struct { gorm.Model Value string Type string ModelID int ModelType string ExpiresAt time.Time }
Token holds tokens typically used for user activation and password resets
func (Token) HasExpired ¶
HasExpired is a helper function that checks if the current time is after the token expiration time
Click to show internal directories.
Click to hide internal directories.