Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppPath string = getAppPath()
AppPath returns a tring of the current application path
View Source
var (
DB = db.DB{DBPath: LucidHomeDir() + "/lucid.db"}
)
Functions ¶
func CheckError ¶
func CheckError(err error)
CheckError takes in an error value and handles it by logging its output
func CreatePasswordHash ¶
CreatePasswordHash creates a bcrypt has with a default cost added
func CreateToken ¶
CreateToken generates a jwt string token and an error
func LucidHomeDir ¶
func LucidHomeDir() string
LucidHomeDir is the deafult configuration directory on the syste
func PasswordHashCompare ¶
PasswordHashCompare checks whether the password and hash in the database cryptographically match
func VerifyToken ¶
VerifyToken takes in a string token. Then returns a boolean and an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.