request

package
v0.0.0-...-c8e5cf1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestKey = &ContextKey{"RequestID"}
)

Functions

func GetID

func GetID(ctx context.Context) string

func ID

func ID() func(next http.Handler) http.Handler

func NextID

func NextID() uint64

func NonEmpty

func NonEmpty(log *slog.Logger) func(next http.Handler) http.Handler

Types

type ContextKey

type ContextKey struct {
	Name string
}

func (*ContextKey) String

func (k *ContextKey) String() string

Jump to

Keyboard shortcuts

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