Documentation ¶
Index ¶
- Constants
- func GetReqID(ctx context.Context) string
- func GinRequestIDMW(c *gin.Context)
- func NewRequestID() string
- func RequestID(next http.Handler) http.Handler
- func RequestIDStreamServerInterceptor() grpc.StreamServerInterceptor
- func RequestIDUnaryServerInterceptor() grpc.UnaryServerInterceptor
- type RequestIDKey
Constants ¶
View Source
const (
RequestIDHeader = "X-Request-Id"
)
Variables ¶
This section is empty.
Functions ¶
func GinRequestIDMW ¶ added in v1.0.2
func NewRequestID ¶ added in v1.0.3
func NewRequestID() string
func RequestIDStreamServerInterceptor ¶
func RequestIDStreamServerInterceptor() grpc.StreamServerInterceptor
func RequestIDUnaryServerInterceptor ¶
func RequestIDUnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type RequestIDKey ¶
type RequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.