Gemini.DefaultRateLimit (Gemini v0.2.0)
This module keeps track of IP addresses for rate-limiting.
To configure rate-limiting, use the following config keys:
- periodic cleanup after
:rate_limit_max_ageminutes. - allow
:rate_limit_max_callswithin:rate_limit_bracket_durationminutes or get rate-limited. :rate_limit_penaltyseconds of rate-limiting.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor.
Link to this function
start_link(_)
Specs
start_link(any()) :: GenServer.on_start()