Documentation ¶
Overview ¶
Package user handles a user database.
Index ¶
- Constants
- func AuthenticateUser(db database.DB, user User, password string) error
- func CreateTable(db database.DB) error
- func DeleteUserByID(db database.DB, id int64) error
- func SetUserPassword(db database.DB, user User, password string) error
- func UpdateUser(db database.DB, user User) error
- type User
Constants ¶
View Source
const ( // HashLength defines the lenght of the password hash. HashLength = 64 // SaltLength defines the length of the salt. SaltLength = 32 )
View Source
const Name = "users"
Name of the table
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.