middlewares

package
v0.0.0-...-86e0aa6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(c *gin.Context)

解决cors跨域请求

Types

type TokenAuth

type TokenAuth struct {
	// contains filtered or unexported fields
}

用于鉴权的中间件 用于Token鉴权的中间件

func NewTokenAuther

func NewTokenAuther() *TokenAuth

func (*TokenAuth) Auth

func (a *TokenAuth) Auth(g *gin.Context)

怎么鉴权? Gin中间件 func(*Context)

Jump to

Keyboard shortcuts

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