senddecorator

package
v5.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTooManyRequests

func IsTooManyRequests(err error) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL