A module backed by an ETS to mark when a node is ratelimited.
To make this easy to use and to prevent race conditions, this ETS is wrapped in a GenServer that needs to be started in the parent application's supervision tree.
Summary
Functions
Returns a specification to start this module under a supervisor.
Check if this node is ratelimited.
Set this node to be ratelimited until the end of the current minute.
Initialize the ETS table for the node ratelimiter.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Check if this node is ratelimited.
Set this node to be ratelimited until the end of the current minute.
@spec start_link(opts :: keyword()) :: GenServer.on_start()
Initialize the ETS table for the node ratelimiter.