contextutil

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store[T any] struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore[T any](key string) *Store[T]

func (*Store[T]) GetContextWithValue

func (s *Store[T]) GetContextWithValue(c context.Context, val T) context.Context

func (*Store[T]) GetRequestWithContext

func (s *Store[T]) GetRequestWithContext(r *http.Request, val T) *http.Request

func (*Store[T]) GetValueFromContext

func (s *Store[T]) GetValueFromContext(c context.Context) T

Jump to

Keyboard shortcuts

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