package
Version:
v0.0.0-...-7b0e155
Opens a new window with list of versions in this module.
Published: Jan 5, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Generate 生成JSON WEB TOKEN
生成普通的Token
func WithJWT(method jwt.SigningMethod, publicKey interface{}) gin.HandlerFunc
WithJWT JWT中间件,访问API时做Token校验
type Request struct {
ClientID string
PrivateKey interface{}
Expire time.Duration
Method jwt.SigningMethod
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.