Parrhesia.Web.IPEventIngestLimiter (parrhesia v0.12.0)

Copy Markdown

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

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

allow(remote_ip, server \\ __MODULE__)

@spec allow(tuple() | String.t() | nil, GenServer.server()) ::
  :ok | {:error, :ip_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()