middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

AuthMiddleware token验证中间件

func Cors

func Cors() gin.HandlerFunc

Cors 跨域

func ErrorMiddleware

func ErrorMiddleware() gin.HandlerFunc

ErrorMiddleware 错误处理中间件

func IsHttps

func IsHttps(c *gin.Context) bool

IsHttps 判断是否https

func SetToken

func SetToken(c *gin.Context, accessToken, refreshToken string)

SetToken 设置token

Types

This section is empty.

Jump to

Keyboard shortcuts

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