Documentation ¶
Index ¶
- Variables
- func CreateAdminUser(username, password string) error
- func CreateDB(filepath, schemaFilepath string) error
- func CreateUser(username, password string) error
- func DecodeHash(hash string, data *Argon2Params) error
- func GenerateHash(secret string) (string, error)
- func GetDB() *sql.DB
- func SignInUser(username, password string) (string, error)
- func SignOutUser(sessionId string) error
- func TryCreateUser(username, password string) error
- func UsernameTaken(username string) (bool, error)
- func VerifyHash(secret, hash string) bool
- type Argon2Params
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateAdminUser ¶
func CreateUser ¶
func DecodeHash ¶
func DecodeHash(hash string, data *Argon2Params) error
func GenerateHash ¶
func SignInUser ¶
func SignOutUser ¶
func TryCreateUser ¶
func UsernameTaken ¶
func VerifyHash ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.