Documentation
¶
Index ¶
- Constants
- func GetJourneyTokenFromRequestToken(c *gin.Context, jwToken tokenauth.TokenBase) (bool, string, error)
- func GetUberTraceId(c context.Context) string
- func HttpTracingUnaryServerInterceptor(deps tracingDeps) gin.HandlerFunc
- func JwtToken() gin.HandlerFunc
- func RequestId() gin.HandlerFunc
- func TracerRESTClientInterceptor(deps tracingDeps) client.HTTPClientInterceptor
Constants ¶
View Source
const TokenHeaderName = "token"
View Source
const UberTraceId = "Uber-Trace-Id"
Variables ¶
This section is empty.
Functions ¶
func GetJourneyTokenFromRequestToken ¶ added in v0.57.0
func GetUberTraceId ¶
func HttpTracingUnaryServerInterceptor ¶
func HttpTracingUnaryServerInterceptor(deps tracingDeps) gin.HandlerFunc
func JwtToken ¶
func JwtToken() gin.HandlerFunc
func RequestId ¶
func RequestId() gin.HandlerFunc
func TracerRESTClientInterceptor ¶
func TracerRESTClientInterceptor(deps tracingDeps) client.HTTPClientInterceptor
TracerRESTClientInterceptor is a REST tracing client interceptor, it can log req/resp if needed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.