context

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package context allows systemic wrapping of provider.Context before invoking a subsidiary provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(provider p.Provider, wrapper Wrapper) p.Provider

Wrap a Provider that calls `wrapper` on each context.Context passed into `provider`.

Types

type Wrapper

type Wrapper = func(context.Context) context.Context

Wrapper describes a function applied to each provider.Context that passes through this Provider.

Jump to

Keyboard shortcuts

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