contexts

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(ctx context.Context, fns ...Handler) (context.Context, error)

Chain is a reverse Pipe.

func MustValue added in v2.11.0

func MustValue[T any](ctx context.Context, key any) T

func Pipe

func Pipe(ctx context.Context, fns ...Handler) (context.Context, error)

Pipe returns a Provider that chains the provided Providers.

func Value added in v2.11.0

func Value[T any](ctx context.Context, key any) (T, bool)

Types

type Func deprecated

type Func Handler

Deprecated: Use Handler instead.

type Handler added in v2.14.2

type Handler func(ctx context.Context) (context.Context, error)

Jump to

Keyboard shortcuts

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