Module ar_rate_limiter.erl¶
Behaviours: gen_server
.
Function Index¶
cut_trace/4* | |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 | |
init/1 | |
off/0 | Turn rate limiting off. |
on/0 | Turn rate limiting on. |
start_link/1 | |
terminate/2 | |
throttle/3 | Hang until it is safe to make another request to the given Peer with the given Path. |
throttle2/3* |
Function Details¶
cut_trace/4 *¶
cut_trace(N, Trace, Now, Opts) -> any()
handle_call/3¶
handle_call(Request, From, State) -> any()
handle_cast/2¶
handle_cast(Cast, State) -> any()
handle_info/2¶
handle_info(Message, State) -> any()
init/1¶
init(Opts) -> any()
off/0¶
off() -> any()
Turn rate limiting off.
on/0¶
on() -> any()
Turn rate limiting on.
start_link/1¶
start_link(Opts) -> any()
terminate/2¶
terminate(Reason, State) -> any()
throttle/3¶
throttle(Peer, Path, Opts) -> any()
Hang until it is safe to make another request to the given Peer with the given Path. The limits are configured in include/ar_blacklist_middleware.hrl.
throttle2/3 *¶
throttle2(Peer, Path, Opts) -> any()