config

package
v2.26.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

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

func NewContext

func NewContext[T any](ctx context.Context, config T) context.Context

Types

type Provider

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

func NewProvider added in v2.11.0

func NewProvider[T any](config T) *Provider[T]

func (*Provider[T]) Bootstrap added in v2.11.0

func (p *Provider[T]) Bootstrap(ctx context.Context) (context.Context, error)

func (*Provider[T]) Terminate added in v2.11.0

func (p *Provider[T]) Terminate(ctx context.Context) (context.Context, error)

Jump to

Keyboard shortcuts

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