Documentation ¶
Index ¶
- func IsTooManyRequests(err error) bool
- func MetricsDecorator(name, subscriptionID string, metricsCollector collector.AzureAPIMetrics) autorest.SendDecorator
- func RateLimitCircuitBreaker(g *backpressure.Backpressure) autorest.SendDecorator
- func WrapClient(c *autorest.Client, decorators ...autorest.SendDecorator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTooManyRequests ¶
IsTooManyRequests asserts tooManyRequestsError.
func MetricsDecorator ¶
func MetricsDecorator(name, subscriptionID string, metricsCollector collector.AzureAPIMetrics) autorest.SendDecorator
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.
func WrapClient ¶
func WrapClient(c *autorest.Client, decorators ...autorest.SendDecorator)
WrapClient accepts variable number of SendDecorators that wrap the given autorest Client.
Existing SendDecorators are preserved, but moved to end of slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.