Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureClient ¶
func ConfigureClient(g *backpressure.Backpressure, c *autorest.Client)
ConfigureClient accepts backpressure instance and configures given autorest Client instance with all local `autorest.SendDecorator` implementations in this package.
Existing SendDecorators are preserved, but moved to end of slice.
func IsTooManyRequests ¶
IsTooManyRequests asserts tooManyRequestsError.
func RateLimitCircuitBreaker ¶
func RateLimitCircuitBreaker(g *backpressure.Backpressure) autorest.SendDecorator
RateLimitCircuitBreaker utilizes simple backpressure implementation to hold off from making any additional requests when server responds HTTP 429 Too Many Requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.