common

package
v0.0.0-...-dae3ebb Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 6 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 GetHashingCost

func GetHashingCost(hashedPassword []byte) (cost int, err error)

func HashPassword

func HashPassword(password string) (string, error)

func Md5

func Md5(v string) string

Types

type Response

type Response struct {
	Code int         `json:"code"`
	Msg  interface{} `json:"msg"`
	Data interface{} `json:"data"`
}

func ValidateError

func ValidateError(err error) (resp *Response)

Jump to

Keyboard shortcuts

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