meta

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Unlicense Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RequestIDKey for meta.
	// nolint:gochecknoglobals
	RequestIDKey = fmt.Sprintf("%s.request_id", os.ExecutableName())

	// UserAgentKey for meta.
	// nolint:gochecknoglobals
	UserAgentKey = fmt.Sprintf("%s.user_agent", os.ExecutableName())
)

Functions

func RequestID

func RequestID(ctx context.Context) string

RequestID for transport.

func UserAgent

func UserAgent(ctx context.Context) string

UserAgent for transport.

func WithRequestID

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

WithRequestID for transport.

func WithUserAgent

func WithUserAgent(ctx context.Context, id 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