retryrepectthrottled

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderRetryAfter = "Retry-After"

Variables

View Source
var (
	ErrTooManyRequest = errors.New("throttled due to too many requests")
)

Functions

func GetRetriableStatusCode

func GetRetriableStatusCode() []int

func NewThrottlingPolicy

func NewThrottlingPolicy() policy.Policy

Types

type ThrottlingPolicy

type ThrottlingPolicy struct {
	RetryAfterReader time.Time
	RetryAfterWriter time.Time
}

ThrottlingPolicy implements the Azure SDK for Go's Policy interface. throttle counter is based on resources operation per subscription.

func (*ThrottlingPolicy) Do

Jump to

Keyboard shortcuts

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