mcontext

package
v0.0.0-...-da3e774 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ContextTraceKey = ContextTraceType("ctx-trace-info")

ContextTraceKey is the key of TraceCtxt saved in a Golang context

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextTraceType

type ContextTraceType string

ContextTraceType represents the type of golang Context key

type TraceCtxt

type TraceCtxt struct {
	RequestRecorder  *xhttp.RequestRecorder
	ResponseRecorder *xhttp.ResponseRecorder

	FuncName string
	AmzReqID string
}

TraceCtxt holds related tracing data of a http request.

Jump to

Keyboard shortcuts

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