middleware

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTraceId

func CreateTraceId() gin.HandlerFunc

func HandleGlobalException

func HandleGlobalException() gin.HandlerFunc

捕捉全局异常并返回统一的JSON响应

func RequestResponseLogger

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