utils

package
v0.0.0-...-e9bd53e Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrrentUserCtxKey contextKey = "currentUser"

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashedPasswd string, passwd string) error

CompareEncryptdPasswd Compares hashed password with possible plaintext password

func EncryptPassword

func EncryptPassword(passwd string) (string, error)

EncryptPassword Encrypts user password

func GenerateGUID

func GenerateGUID() (string, error)

GenerateGUID Generates a GUID

func ToJSONBytes

func ToJSONBytes(data interface{}) ([]byte, error)

func ToObject

func ToObject(data []byte, object interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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