memory

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

func Generate

func Generate() string

Generate creates a highly performant, lock-free unique request ID. It avoids making syscalls to /dev/urandom on the hot path.

func Middleware

func Middleware(next http.Handler) http.Handler

func WithRequestID

func WithRequestID(ctx context.Context, id string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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