Documentation ¶
Index ¶
- func CopyPreHeaderToCurRoutine(preRoutineId uint64)
- func GetClientIp() string
- func GetGoroutineID() uint64
- func GetHeader(header string) string
- func GetHeaders() map[string]string
- func GetRequestId() string
- func GetUserAgent() string
- func Headers() gin.HandlerFunc
- func PutRequestId(c *gin.Context)
- func TraceId() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyPreHeaderToCurRoutine ¶ added in v1.1.16
func CopyPreHeaderToCurRoutine(preRoutineId uint64)
从其他协程克隆headers到当前协程的缓存
func GetClientIp ¶ added in v1.1.6
func GetClientIp() string
func GetGoroutineID ¶ added in v1.1.15
func GetGoroutineID() uint64
func GetHeaders ¶ added in v1.1.9
func GetRequestId ¶
func GetRequestId() string
func GetUserAgent ¶ added in v1.1.6
func GetUserAgent() string
func Headers ¶ added in v1.1.9
func Headers() gin.HandlerFunc
func PutRequestId ¶
func TraceId ¶
func TraceId() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.