utils

package
v0.0.0-...-66d4b71 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: GPL-3.0 Imports: 7 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 ExtractClaims

func ExtractClaims(tokenStr string) (jwt.MapClaims, bool)

func ExtractClaimsForRefresh

func ExtractClaimsForRefresh(tokenStr string) (jwt.MapClaims, bool)

func HashPassword

func HashPassword(password string) (string, error)

func MakeRandomNumber

func MakeRandomNumber(min int, max int) int

func MakeTokenFromUUID

func MakeTokenFromUUID(uuid uuid.UUID) string

func Message

func Message(status bool, message string) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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