-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🤗 [Question]: limiter supports dynamic setting of “Max” parameter #3065
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
@zhangyongding can you please describe in more detail what you want to achieve and, if necessary, provide an example |
add in middleware\limiter\config.go
or
example: middleware\limiter\limiter_fixed.go
|
I'm not sure what use case this is intended for |
Yes, I want to manage different accounts with different rate limits |
Does v2 accept PR? |
no, only v3 accept new features |
@zhangyongding are you working on a PR? If not I could do it and send the PR today still |
Question Description
limiter only supports setting a fixed max value. Can a function be used to obtain a max value
example:
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: