helpers

package
v0.0.0-...-d702761 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppJson = "application/json"

Functions

func CompareHash

func CompareHash(h, p []byte) bool

func DestroyFromCloudinary

func DestroyFromCloudinary(fileUrlString string) (err error)

func GenerateToken

func GenerateToken(id uint, email string) string

func GetContentType

func GetContentType(c *gin.Context) string

func HashPassword

func HashPassword(p string) (string, error)

func InitCloudinary

func InitCloudinary()

func UploadToCloudinary

func UploadToCloudinary(file multipart.File) (string, error)

func VerifyToken

func VerifyToken(c *gin.Context) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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