Documentation
    Preparing search index...

    Function createState

    • Create an empty FirewallState with no token-bucket or burst counters.

      Returns a fresh ephemeral counter state. Counter state is never persisted (Phase 81 concern) — it is reset on reload and rebuilt as observations arrive.

      Mirrors the createState() factory pattern from @kehto/acl/mutations.ts.

      Returns FirewallState

      A new FirewallState with empty buckets and bursts maps

      const state = createState();
      // { buckets: {}, bursts: {} }