glimit/actor
The rate limiter actor.
Types
Functions
pub fn hit(
subject: Subject(Message(a)),
identifier: a,
) -> Result(Nil, Nil)
Log a hit for a given identifier.
pub fn new(
per_second: Option(Int),
per_minute: Option(Int),
per_hour: Option(Int),
) -> Result(Subject(Message(a)), Nil)
Create a new rate limiter actor.