utils

package
v0.0.0-...-bbe708f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Unlicense Imports: 3 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 GenerateJWT

func GenerateJWT(userid uint, hours time.Duration) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

Types

type GenericResponse

type GenericResponse struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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