mwJwt

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MwJwt

type MwJwt struct {
	Middleware gin.HandlerFunc
	// contains filtered or unexported fields
}

func NewJwtMiddleware

func NewJwtMiddleware(tokenKey, secret, appName, ginKey string, p reflect.Type, abortFunc func(error) (code int, jsonObj interface{})) MwJwt

func (*MwJwt) GenerateToken

func (j *MwJwt) GenerateToken(data interface{}, expireHour int) (res *jwt.JwtObj, e error)

Jump to

Keyboard shortcuts

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