Documentation ¶
Index ¶
Constants ¶
View Source
const RequestBodyKey = "RequestBodyKey"
RequestBodyKey 用于日志输出请求体,避免二次解包 调用时可以在请求Handler里解析完参数后再defer SetRequestBody即可
Variables ¶
This section is empty.
Functions ¶
func GinRequestIDForTrace ¶
func GinRequestIDForTrace() gin.HandlerFunc
GinRequestIDForTrace gin middleware for request id
func SetRequestBody ¶
Types ¶
type CustomResponseWriter ¶
type CustomResponseWriter struct { gin.ResponseWriter // contains filtered or unexported fields }
CustomResponseWriter 自定义的 ResponseWriter
Click to show internal directories.
Click to hide internal directories.