middlerware

package
v0.0.0-...-9f39f39 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestId = "X-RequestId"
)

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(c *gin.Context)

CorsMiddleware 跨域中间件

func RecoveryMiddleware

func RecoveryMiddleware(c *gin.Context)

func ReqIdMiddleware

func ReqIdMiddleware(c *gin.Context)

ReqIdMiddleware req_id中间件

func ReqLogMiddleware

func ReqLogMiddleware(c *gin.Context)

ReqLogMiddleware 请求日志中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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