Documentation ¶
Index ¶
- func Log(decorateLogFunc func(requestLog *logger.Log, c *gin.Context)) gin.HandlerFunc
- func LogFinish(req interface{}) (resp interface{}, err error)
- func LogStart(req interface{}) (resp interface{}, err error)
- func Recovery() gin.HandlerFunc
- func RequestID(c *gin.Context) string
- func SetLog() gin.HandlerFunc
- func SetRequestIdToContext() gin.HandlerFunc
- type LogFinishReq
- type LogMidReq
- type LogMidResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recovery ¶
func Recovery() gin.HandlerFunc
Recovery returns a middleware that recovers from any panics and writes a 500 if there was one.
func SetLog ¶
func SetLog() gin.HandlerFunc
func SetRequestIdToContext ¶
func SetRequestIdToContext() gin.HandlerFunc
Types ¶
type LogFinishReq ¶
Click to show internal directories.
Click to hide internal directories.