interceptortrace

package
v0.0.82 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHTTPRequestIDKey = "X-Request-ID"
)

Variables

This section is empty.

Functions

func ExtractFromContext added in v0.0.68

func ExtractFromContext(ctx context.Context, key string) string

func ExtractFromHTTP added in v0.0.68

func ExtractFromHTTP(r *http.Request, key string) string

func ExtractHTTPAndContext added in v0.0.75

func ExtractHTTPAndContext(r *http.Request, key string) string

func ExtractRequestIDFromContext added in v0.0.71

func ExtractRequestIDFromContext(ctx context.Context) string

func ExtractRequestIdHTTPAndContext added in v0.0.75

func ExtractRequestIdHTTPAndContext(r *http.Request) string

func SetPairContext added in v0.0.75

func SetPairContext(r *http.Request, key, value string) *http.Request

func SetPairsContext added in v0.0.75

func SetPairsContext(keys []string) func(handler http.Handler) http.Handler

func SetRequestIdContext

func SetRequestIdContext(r *http.Request, requestID string) *http.Request

func TraceID

func TraceID(handler http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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