Documentation ¶
Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- func MustHashPassword(password string) string
- func NullString(value string) sql.NullString
- func ParseBodyThenValidate(ctx *fiber.Ctx, v any) (bool, error)
- func ParseIDFromCtx(ctx *fiber.Ctx, paramName string) (int64, error)
- func TrueNullBool() sql.NullBool
Constants ¶
This section is empty.
Variables ¶
View Source
var PasswordHashCost = bcrypt.DefaultCost
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compare password with hash
func HashPassword ¶
hashPassword generates a hashed password from a plaintext string
func MustHashPassword ¶
func NullString ¶
func NullString(value string) sql.NullString
func ParseBodyThenValidate ¶
func ParseIDFromCtx ¶
func TrueNullBool ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.