MishkaCmsCore.Runtime.States.RateLimitState (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Hammer's ETS table that signing in, the password reset request and the magic-link request are counted in: one row per key, whose window opens at the key's first hit and closes per milliseconds later. Start it before anything that can run those actions. See MishkaCmsCore.Accounts.AuthRateLimit.

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)