senddecorator

package
v4.0.0-2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

func IsTooManyRequests(err error) bool

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.

Jump to

Keyboard shortcuts

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