Parrhesia.Web.EventIngestLimiter (parrhesia v0.12.0)

Copy Markdown

Relay-wide EVENT ingest rate limiting over a fixed time window.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

allow(server \\ __MODULE__)

@spec allow(GenServer.server()) :: :ok | {:error, :relay_event_rate_limited}

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

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