interceptortrace

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ExtractHTTPContext

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

func ExtractRequestIdContext

func ExtractRequestIdContext(ctx context.Context) string

func ExtractRequestIdHTTPContext

func ExtractRequestIdHTTPContext(r *http.Request) string

func SetRequestIdContext

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

func TraceID

func TraceID(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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