Documentation ¶
Index ¶
- func CheckLatLon(lat, lon float64) error
- func ComparePassword(pass, hashedPass string) error
- func EmailFormatCheck(email string) bool
- func GenJWTToken(ID string) (string, time.Time, error)
- func GenUUID() string
- func HashPassword(password string) (string, error)
- func MustGet(k string) string
- func MustGetBool(k string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLatLon ¶
CheckLatLon checks if latitude and longitude are valid
func ComparePassword ¶
ComparePassword takes a pass and a hash and checks if the hash is the hash of this pass
func EmailFormatCheck ¶
EmailFormatCheck checks the validity of the email id
func GenJWTToken ¶
GenJWTToken generates a JWT token with ID and returns the token and expiry time
func HashPassword ¶
HashPassword creates the hash version of password (string)
func MustGetBool ¶
MustGetBool will return the env as boolean or panic if it is not present
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.