utils

package
v0.0.0-...-7df3c15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash To compare hash password with the one in DB

func DeleteJobInternal

func DeleteJobInternal(db *sql.DB)

func GenerateToken

func GenerateToken(user user.User) (string, error)

GenerateToken to generate token when user is signed in

func HashPassword

func HashPassword(password string) (string, error)

HashPassword To hash passwords

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL