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_age
minutes. - allow
:rate_limit_max_calls
within:rate_limit_bracket_duration
minutes or get rate-limited. :rate_limit_penalty
seconds 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()