untils

package
v0.0.0-...-f30c324 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func ErrorMessage

func ErrorMessage(message string, err error) fiber.Map

func GenerateJwtToken

func GenerateJwtToken(user_id string, token_id string, used_time int, subject string, exp_time int64) (string, error)

func GenerateQuestionAnswerId

func GenerateQuestionAnswerId() string

func GenerateQuestionChatId

func GenerateQuestionChatId() string

func GenerateQuestionId

func GenerateQuestionId() string

func GenerateRandomBase64String

func GenerateRandomBase64String() (string, error)

func GenerateTokenId

func GenerateTokenId() string

func GenerateUserAccountId

func GenerateUserAccountId() string

func HashPassword

func HashPassword(password string) (string, error)

func InvalidRequest

func InvalidRequest() fiber.Map

func IsValidEmail

func IsValidEmail(email string) bool

func IsValidUsername

func IsValidUsername(username string) bool

func RequestDataRequired

func RequestDataRequired(data map[string]string, data_name []string) fiber.Map

this is for mutiple values check the value is exists

func RequestValueInUse

func RequestValueInUse(value string) fiber.Map

func RequestValueRequired

func RequestValueRequired(value string) fiber.Map

this is for single values check the value is exists

func RequestValueValid

func RequestValueValid(value string) fiber.Map

func VerifyJwtToken

func VerifyJwtToken(jwt_token *jwt.Token, id string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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