Releases: Narasimha1997/ratelimiter
Releases · Narasimha1997/ratelimiter
v1.1.1
v1.1.0
v1.0.0
Releasing the first initial stable version of rate-limiter.
New additions:
SyncLimiter
: A new limiter implementation that require no goroutine in the background to maintain the sliding window.- More tests that cover
SyncLimiter
. AttrubuteBasedLimiter
can be configured to useDefaultLimiter
andSyncLimiter
by passingbackgroundSlider
flag.- Added docs
v0.3.0
New things:
- Added test coverage
- Fixed an issue that could probably cause deadlock when
Kill()
is called. AttributeBasedRateLimiter
not acceptsstring
as paramter across various functions instead of*string
.
v0.2.0
Additions:
- Now we can call
defer limiter.Kill()
to clean up or deactivate the limiter when it is not in use anymore. This will also kill the underlying goroutine and avoids resource leak. limiter.ShouldAllow(N uint64)
now returnsbool, error
.error
is notnil
ifShouldAllow
is called on a limiter that is killed or inactive.
v0.1.2
Initial version of ratelimiter
.
Test status