Back to

Package function

Latest Go to latest

The highest tagged major version is .

Published: Aug 18, 2019 | License: Apache-2.0 | Module:


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)

type Result

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

type Token

type Token struct {
	Token string

func CreateJWT

func CreateJWT() (token Token)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier