providerchain

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFirst

func RunFirst[P any, R any](
	order []string,
	get func(name string) (P, bool),
	call func(provider P) (*R, error),
	finalize func(name string, resp *R),
	unavailable error,
) (*R, error)

RunFirst invokes providers in order until one returns a non-nil response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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