Open patramsey opened 1 year ago
I think this is a useful feature, PR would be more than welcomed!
@patramsey would you be interested in creating a pull request with the feature you described? I'd be happy to review and merge it. Thanks!
Hey, This looks interesting and I also want to learn this repository. Can I solve this issue or is it already solved?
This is not solved. If you're interested in implementing it please consider making a pull request
Thanks!
I will look into this issue. If I have any doubts , can I ask them here?
If my understanding is right, For each algo(token Bucket, leaky bucket etc), I need to write another function similar to Limit which resets the state of the backend?
Right. You will also need to add tests for each of them in a similar way it's done for the Limit() method
Hello,
It does not appear that this package allows for the reset of a limit, is that correct? I have come across a use case where rate limits need to be reset. A user forgets their password, gets rate limited logging into their account. They successfully reset their password, the previous limit should be cleared so they are allowed to attempt to login again.
Would you consider a PR for this feature?