Custom keys?
RasmusN opened this issue · 1 comments
RasmusN commented
Is it possible to have other keys than IP-addresses? I want to make rate limit middle-wares for both IP and other properties.
Something like this library has where you provide a key-function to the Limiter
https://github.com/JGLTechnologies/gin-rate-limit
dnozdrin commented
@RasmusN
is this the subject of your request?
https://github.com/ulule/limiter#none-of-the-above
https://github.com/ulule/limiter/blob/master/drivers/middleware/stdlib/options.go#L54