middleware

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Breaker

func Breaker() gin.HandlerFunc

TODO 容断器

func Cors

func Cors() gin.HandlerFunc

Cors 直接放行所有跨域请求并放行所有 OPTIONS 方法

func JWTAuth

func JWTAuth(secret string) gin.HandlerFunc

func LogHandler

func LogHandler(verbose bool) gin.HandlerFunc

func Prometheus

func Prometheus(monitor *prometheus.Monitor, engine *gin.Engine) gin.HandlerFunc

func Recovery

func Recovery(stack bool) gin.HandlerFunc

func RecoveryWithWriter

func RecoveryWithWriter(stack bool) gin.HandlerFunc

Recovery recover掉项目可能出现的panic

func Unzip

func Unzip() 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