# `Parrhesia.Web.PubkeyEventIngestLimiter`

Per-pubkey EVENT ingest rate limiting over a fixed time window.

This limiter is optional and defaults to disabled (`max_events_per_window = 0`).

# `allow`

```elixir
@spec allow(String.t() | nil, GenServer.server()) ::
  :ok | {:error, :pubkey_event_rate_limited}
```

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
