helpers

package
v0.0.0-...-af64e70 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const JwtContextKey = "userInfo"

Variables

View Source
var ProductCategory []string = []string{"Clothing", "Accessories", "Footwear", "Beverages"}

Functions

func CheckTokenHeader

func CheckTokenHeader(ctx *fiber.Ctx) error

func ComparePassword

func ComparePassword(hashPassword string, password string) (bool, error)

func FileUpload

func FileUpload(file *multipart.FileHeader, fileName string) (string, error)

func GetTokenHandler

func GetTokenHandler() fiber.Handler

func HashPassword

func HashPassword(password string) (string, error)

func RegisterCustomValidator

func RegisterCustomValidator(validator *validator.Validate)

Types

This section is empty.

Jump to

Keyboard shortcuts

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