Documentation ¶
Index ¶
- Constants
- Variables
- func NewKey(cfg *limiter.Config) limiter.KeyFunc
- func RequestID(ctx context.Context) meta.Valuer
- func UserAgent(ctx context.Context) meta.Valuer
- func WithRequestID(ctx context.Context, id meta.Valuer) context.Context
- func WithTraceID(ctx context.Context, id meta.Valuer) context.Context
- func WithUserAgent(ctx context.Context, userAgent meta.Valuer) context.Context
Constants ¶
View Source
const ( // RequestIDKey for meta. RequestIDKey = "requestId" // UserAgentKey for meta. UserAgentKey = "userAgent" // ServiceKey for meta. ServiceKey = "service" // PathKey for meta. PathKey = "path" // MethodKey for meta. MethodKey = "method" // CodeKey for meta. CodeKey = "code" // DurationKey for meta. DurationKey = "duration" // StartTimeKey for meta. StartTimeKey = "startTime" // DeadlineKey for meta. DeadlineKey = "deadline" )
Variables ¶
Module for fx.
Functions ¶
func WithRequestID ¶
WithRequestID for transport.
func WithTraceID ¶ added in v1.128.0
WithTraceID for transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.