RateLimiterStore is the interface to be implemented by custom stores.
| 23 | |
| 24 | // RateLimiterStore is the interface to be implemented by custom stores. |
| 25 | type RateLimiterStore interface { |
| 26 | Allow(identifier string) (bool, error) |
| 27 | } |
| 28 | |
| 29 | // RateLimiterStoreContext is an optional interface a RateLimiterStore may implement. |
| 30 | // When the configured store implements it, the rate limiter calls AllowContext |
no outgoing calls
no test coverage detected
searching dependent graphs…