mwJwt

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 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

	TokenKey string
	AppName  string
	Secret   string
}

func NewJwtMiddleware

func NewJwtMiddleware(tokenKey, secret, appName, ginKey string, p reflect.Type, abortFunc func(*gin.Context, error)) 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