utils

package
v0.0.0-...-d45268e Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMD5Hash

func GenerateMD5Hash(url string) string

func GenerateToken

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

* GenerateToken generates a JWT token for the user

func LoadEnv

func LoadEnv(path string)

func SetupDBConnection

func SetupDBConnection(dsn string) (*bun.DB, error)

func VerifyToken

func VerifyToken(tokenString string) (string, error)

* VerifyToken verifies the token and returns the email of the user

Types

This section is empty.

Jump to

Keyboard shortcuts

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