reqid

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestId

func GetRequestId(r *http.Request) string

func ReqIdMiddleware

func ReqIdMiddleware(next http.Handler) http.Handler

Types

type ContextKey

type ContextKey string
const (
	RequestIdKey           ContextKey = "requestId"
	RequestIdHttpHeaderKey            = "X-Request-Id"
)

Jump to

Keyboard shortcuts

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