Documentation ¶
Index ¶
- Constants
- Variables
- func Authorization(ctx context.Context) meta.Valuer
- func Geolocation(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 WithGeolocation(ctx context.Context, location meta.Valuer) context.Context
- func WithIPAddr(ctx context.Context, addr meta.Valuer) context.Context
- func WithIPAddrKind(ctx context.Context, kind 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" // GeoLocation for meta. GeolocationKey = "geoLocation" )
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 Geolocation ¶ added in v1.219.0
Geolocation for transport.
func WithAuthorization ¶ added in v1.205.0
WithAuthorization for transport.
func WithGeolocation ¶ added in v1.219.0
WithGeolocation for transport.
func WithIPAddr ¶ added in v1.168.0
WithIPAddr for transport.
func WithIPAddrKind ¶ added in v1.211.0
WithIPAddrKind for transport.
func WithRequestID ¶
WithRequestID for transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.