AniLink - v3.0.0
    Preparing search index...

    Function getCircuitState

    • Returns the live breaker state for one owner-and-host scope, creating it on first use.

      Access refreshes the scope's recency in the per-owner map; once an owner tracks more scopes than the LRU cap allows, the least-recently-used scope's state is evicted so dynamic-URL callers cannot grow the map without bound. Disabled configurations never reach this function, so opting out allocates nothing.

      Parameters

      • owner: object

        The stable per-client state owner.

      • scope: string

        The upstream host the breaker is scoped to.

      Returns CircuitState

      The mutable breaker state for the scope.