Documentation
¶
Overview ¶
Package valuesource is umbra's shared value-resolution layer: a Provider reads a named address at request time, so neither engine imports a store SDK.
Index ¶
- func Builtins() map[string]Provider
- func Merge(consumer map[string]Provider) map[string]Provider
- func Resolve(ctx context.Context, providers map[string]Provider, provider, address string) (string, error)
- func ResolveFirst(ctx context.Context, providers map[string]Provider, sources []Source) (string, error)
- type Provider
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Builtins ¶
Builtins are the store-agnostic resolvers umbra ships itself: no SDK, no wiring. A consumer entry of the same name overrides one via Merge.
func Merge ¶
Merge layers the consumer's registry over the built-ins (consumer wins on a clash), always non-nil. A missing provider fails closed in Resolve.
Types ¶
Click to show internal directories.
Click to hide internal directories.