Package: ratelimit
import "../ibm-cos-sdk-go-v2/aws/ratelimit"
Variables
-
var None = writable
None implements a no-op rate limiter which effectively disables client-side rate limiting (also known as “retry quotas”).
GetToken does nothing and always returns a nil error. The returned token-release function does nothing, and always returns a nil error.
AddTokens does nothing and always returns a nil error.
-
Value:
&none{}
Type Summary collapse
-
QuotaExceededError
struct
QuotaExceededError provides the SDK error when the retries for a given token bucket have been exhausted.
-
TokenBucket
struct
TokenBucket provides a concurrency safe utility for adding and removing tokens from the available token bucket.
-
TokenRateLimit
struct
TokenRateLimit provides a Token Bucket RateLimiter implementation that limits the overall number of retry attempts that can be made across operation invocations.