Documentation ¶
Index ¶
- type DB
- func (db *DB) DeletePasswordResets(userID int) error
- func (db *DB) GetPasswordReset(hashedToken string) (*PasswordReset, error)
- func (db *DB) GetUser(id int) (*User, error)
- func (db *DB) GetUserByEmail(email string) (*User, error)
- func (db *DB) InsertPasswordReset(hashedToken string, userID int, ttl time.Duration) error
- func (db *DB) InsertUser(email, hashedPassword string) (int, error)
- func (db *DB) UpdateUserHashedPassword(id int, hashedPassword string) error
- type PasswordReset
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) DeletePasswordResets ¶
func (*DB) GetPasswordReset ¶
func (db *DB) GetPasswordReset(hashedToken string) (*PasswordReset, error)
func (*DB) InsertPasswordReset ¶
type PasswordReset ¶
Click to show internal directories.
Click to hide internal directories.