Coverage for src / lexigram / contracts / infra / resilience / enums.py: 0%
11 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
1"""Resilience pattern enums for Lexigram Framework."""
3from __future__ import annotations
5from enum import StrEnum
8class CircuitState(StrEnum):
9 """Circuit breaker states."""
11 CLOSED = "closed"
12 OPEN = "open"
13 HALF_OPEN = "half_open"
16class RetryStrategy(StrEnum):
17 """Retry backoff strategy semantics."""
19 EXPONENTIAL = "exponential"
20 LINEAR = "linear"
21 FIXED = "fixed"
24__all__ = ["CircuitState", "RetryStrategy"]