helper

package
v0.0.0-...-b382b42 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(hash, password string) bool

func Config

func Config(key string) string

func CreateJWT

func CreateJWT(claims jwt.Claims, key string) (string, error)

func ErrPanic

func ErrPanic(err error) error

func HashPassword

func HashPassword(password string) (string, error)

func SendErrorResponse

func SendErrorResponse(c *fiber.Ctx, code int, err []string) error

func SendMail

func SendMail(email string, subject string, body string) error

func SendResponse

func SendResponse(c *fiber.Ctx, code int, data interface{}) error

func StringToSlice

func StringToSlice(str string) []string

func ValidReq

func ValidReq(c *fiber.Ctx, data interface{}) []string

func ValidateJWT

func ValidateJWT(inputToken string, key string) (*web.TokenClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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