Documentation ¶
Index ¶
- Constants
- Variables
- func Authorization(ctx context.Context) meta.Valuer
- func IPAddr(ctx context.Context) meta.Valuer
- func RegisterKeys()
- func RequestID(ctx context.Context) meta.Valuer
- func UserAgent(ctx context.Context) meta.Valuer
- func WithAuthorization(ctx context.Context, auth meta.Valuer) context.Context
- func WithIPAddr(ctx context.Context, addr meta.Valuer) context.Context
- func WithRequestID(ctx context.Context, id meta.Valuer) context.Context
- func WithUserAgent(ctx context.Context, userAgent meta.Valuer) context.Context
Constants ¶
View Source
const ( // UserAgentKey for meta. UserAgentKey = "userAgent" // IPAddrKey for meta. IPAddrKey = "ipAddr" // Authorization for meta. AuthorizationKey = "authorization" )
View Source
const ( // RequestIDKey for meta. RequestIDKey = "requestId" // 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" )
Variables ¶
View Source
var Module = fx.Options( fx.Invoke(RegisterKeys), )
Module for fx.
Functions ¶
func Authorization ¶ added in v1.205.0
Authorization for transport.
func WithAuthorization ¶ added in v1.205.0
WithAuthorization for transport.
func WithIPAddr ¶ added in v1.168.0
WithIPAddr for transport.
func WithRequestID ¶
WithRequestID for transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.