function

package
v0.0.0-...-a94b3c4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHash

func CheckHash(hash string, secret string) bool

func CreateHash

func CreateHash(secret string) string

func Response

func Response(ctx *gin.Context, vaild error, value interface{}, err error)

func ValidJSONWebToken

func ValidJSONWebToken(requestToken string) (value interface{}, err error)

Types

type Result

type Result struct {
	Value interface{}
	Error interface{}
}

type Token

type Token struct {
	Token string
}

func CreateJWT

func CreateJWT() (token Token)

Jump to

Keyboard shortcuts

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