middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

CORS 跨域处理

func HttpContext

func HttpContext() gin.HandlerFunc

HttpContext 注入自定义上下文

func JWT

func JWT(f types.ToRole) gin.HandlerFunc

JWT jwt 鉴权中间件

func RESTFul

func RESTFul(version types.ApiVersion) gin.HandlerFunc

RESTFul Restful 标准检测解析中间件

func Roles

func Roles(roles []types.IRole) gin.HandlerFunc

Roles 角色权限中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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