middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

func JwtAuth

func JwtAuth(iss string, jwtSrv *lib.JwtService) gin.HandlerFunc

func RecoveryWithZap

func RecoveryWithZap(logger *zap.Logger, stack bool) gin.HandlerFunc

RecoveryWithZap 接收panic日志并恢复应用

func ZapLogger

func ZapLogger(logger *zap.Logger, skipPath []string) gin.HandlerFunc

ZapLogger 接收访问日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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