middlewares

package
v0.0.0-...-750a8a5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

@Description jwt中间件 @Author jiangyang @Created 2020/11/16 5:12 下午

@Description gin.Logger @Author jiangyang @Created 2020/11/26 6:51 下午

@Description rbac中间件 @Author jiangyang @Created 2020/11/17 11:32 上午

@Description gin.Recovery @Author jiangyang @Created 2020/11/27 10:52 上午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtAuth

func JwtAuth() func(ctx *gin.Context)

func LoggerToLogrus

func LoggerToLogrus() gin.HandlerFunc

func Rbac

func Rbac(checkFunc func(interface{}, string) error) func(context *gin.Context)

func Recovery

func Recovery() gin.HandlerFunc

Recovery returns a middleware that recovers from any panics and writes a 500 if there was one.

func RecoveryWithWriter

func RecoveryWithWriter(out io.Writer) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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