Documentation ¶
Index ¶
- Constants
- func RemoteAddress(ctx context.Context) string
- func RequestID(ctx context.Context) string
- func UserAgent(ctx context.Context) string
- func WithRemoteAddress(ctx context.Context, remoteAddress string) context.Context
- func WithRequestID(ctx context.Context, id string) context.Context
- func WithUserAgent(ctx context.Context, userAgent string) context.Context
Constants ¶
View Source
const ( // RequestIDKey for meta. RequestIDKey = "transport.request_id" // UserAgentKey for meta. UserAgentKey = "transport.user_agent" // RemoteAddressKey for meta. RemoteAddressKey = "transport.remote_address" )
Variables ¶
This section is empty.
Functions ¶
func RemoteAddress ¶ added in v1.56.0
RemoteAddress for transport.
func WithRemoteAddress ¶ added in v1.56.0
WithRemoteAddress for transport.
func WithRequestID ¶
WithRequestID for transport.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.