utils

package
v0.0.0-...-af58f68 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AccessTokenExpire time.Duration = 1

AccessTokenExpire 1 hr

View Source
const MsgSuccessDelete string = "Successful deleted"

MsgSuccessDelete

View Source
const ResetPasswordExpire time.Duration = 2

ResetPasswordExpire 2 hrs.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash

func GenerateID

func GenerateID(params ...int) string

GenerateID

func HashPassword

func HashPassword(password string) (string, error)

HashPassword

func ValidateEmail

func ValidateEmail(email string) bool

ValidateEmail

Types

type ErrorResponse

type ErrorResponse struct {
	FailedField string
	Tag         string
	Value       string
}

Jump to

Keyboard shortcuts

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