koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

Adds callback for defining own comparator ID. Fixes #3 #8

Closed mikaelbr closed 9 years ago

mikaelbr commented 10 years ago

Had a stab at implementing callback support for ID as I need it for a project (to ratelimit based on user instead of ip). Hope something like this works. Let me know what you think.

fixe commented 9 years ago

@jonathanong will this be merged?

jonathanong commented 9 years ago

uhhhh i'm not using this and don't know what's going on. @koajs/owners anyone wanna maintain this?

dead-horse commented 9 years ago

the code LGTM

dead-horse commented 9 years ago

1.1.0 released