upctx

package
v0.0.0-...-72fbc82 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GOTraceId     = "Trace-Id"
	NormalTraceId = "trace-id"
)

Variables

This section is empty.

Functions

func BuildContext

func BuildContext(req *http.Request, urlPath string) context.Context

func GetTraceId

func GetTraceId(ctx context.Context) string

func GetUrl

func GetUrl(ctx context.Context) string

func SetGoStdHeader

func SetGoStdHeader(header http.Header, name string, value string)

func SetNormalHeader

func SetNormalHeader(header http.Header, name string, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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