middleware

package module
v0.0.0-...-8d3ff62 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 14 Imported by: 0

README

GO-APP-TEMPLATE 所属中间件

license

介绍

go-app-template 的子模块

内容

  • Casbin 认证部分
  • Jwt 部分
  • 跨域请求
  • panic 处理

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CasbinCheck

func CasbinCheck(pathPrefix string) gin.HandlerFunc

func Cros

func Cros() gin.HandlerFunc

func JWTAuth

func JWTAuth() gin.HandlerFunc

JWTAuth 中间件,检查token

func Recover

func Recover(c *gin.Context)

全局错误崩溃捕获并输出接口信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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