Skip to content

ccproxy.plugins.credential_balancer.hook

ccproxy.plugins.credential_balancer.hook

Hook implementation that monitors provider responses for credential failures.

CredentialBalancerHook

CredentialBalancerHook(managers)

Bases: Hook

Hook that routes HTTP lifecycle events to the balancer managers.

Source code in ccproxy/plugins/credential_balancer/hook.py
def __init__(self, managers: Iterable[CredentialBalancerTokenManager]):
    self._managers: list[CredentialBalancerTokenManager] = list(managers)