GameServerWeb.RateLimit (game_server_web v1.0.938)

Copy Markdown

ETS-backed rate limiter powered by Hammer.

Started in the host application supervision tree. Used by GameServerWeb.Plugs.RateLimiter for HTTP request throttling.

Summary

Functions

Callback implementation for Hammer.expires_at/2.

Callback implementation for Hammer.get/2.

Callback implementation for Hammer.inc/3.

Callback implementation for Hammer.set/3.

Functions

child_spec(opts)

expires_at(key, scale)

Callback implementation for Hammer.expires_at/2.

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)