meta

package
v1.84.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: Unlicense Imports: 2 Imported by: 4

Documentation

Index

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

func RemoteAddress(ctx context.Context) string

RemoteAddress for transport.

func RequestID

func RequestID(ctx context.Context) string

RequestID for transport.

func UserAgent

func UserAgent(ctx context.Context) string

UserAgent for transport.

func WithRemoteAddress added in v1.56.0

func WithRemoteAddress(ctx context.Context, remoteAddress string) context.Context

WithRemoteAddress for transport.

func WithRequestID

func WithRequestID(ctx context.Context, id string) context.Context

WithRequestID for transport.

func WithUserAgent

func WithUserAgent(ctx context.Context, userAgent string) context.Context

WithUserAgent for transport.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL