Documentation
¶
Overview ¶
Package resilience exposes the Kernel resilience policies to Flow atoms.
Index ¶
Constants ¶
const ID = "resilience"
Variables ¶
This section is empty.
Functions ¶
func Bundle ¶
Bundle builds an instance-owned resilience bundle from @require options. Its registry is local to this bundle instance and shared by all compiled actions using that instance; it is neither global nor distributed.
func BundleWithConfig ¶
BundleWithConfig creates a resilience bundle using the supplied host config. If Config.Registry is nil, a private registry is allocated for this bundle.
func BundleWithRegistry ¶
func BundleWithRegistry(cfg Config, registry *action.CircuitBreakerRegistry) compiler.Bundle
BundleWithRegistry lets a host explicitly share breaker state across bundle instances or separately compiled programs. The registry remains process-local.
Types ¶
type Config ¶
type Config struct {
Retry retry.Config
CircuitBreaker action.CircuitBreakerConfig
Registry *action.CircuitBreakerRegistry
}
Config is the Go host configuration for the resilience bundle. Retry uses retry.Config so legacy defaults and validation remain the single source of truth. Registry is host-only and intentionally has no nflow tag.