Voile.RateLimiter (Voile v0.1.27)

Copy Markdown View Source

Rate limiter using Hammer 7.x with ETS backend.

Summary

Functions

child_spec(opts)

get(key, scale)

Callback implementation for Hammer.get/2.

hit(key, scale, limit, increment \\ 1)

Callback implementation for Hammer.hit/4.

inc(key, scale, increment \\ 1)

Callback implementation for Hammer.inc/3.

set(key, scale, count)

Callback implementation for Hammer.set/3.

start_link(opts)