requestid

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package requestid provides a shared context key for request IDs, allowing both client and server packages to access request IDs without circular imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

FromContext returns the request ID from ctx, or empty string if not set.

func NewContext

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

NewContext returns a context with the given request ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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