requestid

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDefault = Config{
	Skip:       nil,
	Header:     router.XRequestID,
	Generator:  uuid.NewString,
	ContextKey: "requestid",
}

Functions

func New

func New(config ...Config) router.MiddlewareFunc

Types

type Config

type Config struct {
	Skip       func(c router.Context) bool
	Header     string
	Generator  func() string
	ContextKey any
}

Jump to

Keyboard shortcuts

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