You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,8 @@ You can find list of returning error types for all existing throttlers in thrott
149
149
| each |`func NewThrottlerEach(threshold uint64) Throttler`| Throttles each periodic *i-th* call defined by the specified threshold.<br> - could return `ErrorThreshold`; |
150
150
| before |`func NewThrottlerBefore(threshold uint64) Throttler`| Throttles each call below the *i-th* call defined by the specified threshold.<br> - could return `ErrorThreshold`; |
151
151
| after |`func NewThrottlerAfter(threshold uint64) Throttler`| Throttles each call after the *i-th* call defined by the specified threshold.<br> - could return `ErrorThreshold`; |
152
+
| past |`func NewThrottlerPast(threshold time.Time) Throttler`| Throttles each call befor timestamp defined by the specified UTC time threshold.<br> - could return `ErrorThreshold`; |
153
+
| future |`func NewThrottlerFuture(threshold time.Time) Throttler`| Throttles each call after timestamp defined by the specified UTC time threshold.<br> - could return `ErrorThreshold`; |
152
154
| chance |`func NewThrottlerChance(threshold float64) Throttler`| Throttles each call with the chance *p* defined by the specified threshold.<br> Chance value is normalized to *[0.0, 1.0]* range.<br> Implementation uses `math/rand` as PRNG function and expects rand seeding by a client.<br> - could return `ErrorThreshold`; |
153
155
| running |`func NewThrottlerRunning(threshold uint64) Throttler`| Throttles each call which exeeds the running quota *acquired - release**q* defined by the specified threshold.<br> - could return `ErrorThreshold`; |
154
156
| buffered |`func NewThrottlerBuffered(threshold uint64) Throttler`| Waits on call which exeeds the running quota *acquired - release**q* defined by the specified threshold until the running quota is available again. |
0 commit comments