Documentation ¶
Index ¶
- Constants
- Variables
- func CheckTokenHeader(ctx *fiber.Ctx) error
- func ComparePassword(hashPassword string, password string) (bool, error)
- func FileUpload(file *multipart.FileHeader, fileName string) (string, error)
- func GetTokenHandler() fiber.Handler
- func HashPassword(password string) (string, error)
- func RegisterCustomValidator(validator *validator.Validate)
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 FileUpload ¶
func FileUpload(file *multipart.FileHeader, fileName string) (string, error)
func GetTokenHandler ¶
func GetTokenHandler() fiber.Handler
func HashPassword ¶
func RegisterCustomValidator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.