middleware

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGinLogger added in v0.0.4

func DefaultGinLogger() gin.HandlerFunc

DefaultGinLogger 记录gin的请求日志 loggerMap中的2个key: access 代表web访问日志, business 代表业务日志

func DefaultGinRecovery added in v0.0.4

func DefaultGinRecovery(stack bool) gin.HandlerFunc

DefaultGinRecovery recover掉项目可能出现的panic

func GinLogger

func GinLogger(logger *zap.Logger) gin.HandlerFunc

GinLogger 接收gin框架默认的日志

func GinLoggerMap

func GinLoggerMap(loggerMap map[string]*zap.Logger) gin.HandlerFunc

GinLoggerMap 记录gin的请求日志 loggerMap中的2个key: access 代表web访问日志, business 代表业务日志

func GinRecovery

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

GinRecovery recover掉项目可能出现的panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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