context

package
v0.0.0-...-2b7dcb4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context) context.Context

Copy copies common httpx values injected into a request context to another context.

This is useful when performing work outside of the request lifecycle that was a result of a request. For instance, the request id and tracing spans are useful but the deadline of the request context does not apply.

func CopyToContext

func CopyToContext(target, source context.Context) context.Context

CopyToContext copies common httpx values injected into a request context to a target context. See #Copy for an explanation of why this might be useful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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