middleware

package
v0.0.0-...-53e17f9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthToken

func AuthToken() gin.HandlerFunc

AuthToken 用户验证中间件(Token) https://gin-gonic.com/docs/examples/custom-middleware/ https://github.com/dgrijalva/jwt-go 登录成功 生成令牌 token, err := common.GenerateToken("username") 用户授权 解析令牌 claims, err := common.ParseToken("token")

Types

This section is empty.

Jump to

Keyboard shortcuts

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