roundtripper

package
v0.0.0-...-ee605f6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetryableRateLimitTransport

func NewRetryableRateLimitTransport(millsBetweenRetries int, retrySleepJitter int, roundTripper http.RoundTripper) http.RoundTripper

func NewSimpleRateLimitTransport

func NewSimpleRateLimitTransport(requestsPerSecond float64, roundTripper http.RoundTripper) http.RoundTripper

Types

type RetryableRateLimitTransport

type RetryableRateLimitTransport struct {
	// contains filtered or unexported fields
}

func (*RetryableRateLimitTransport) RoundTrip

type SimpleRateLimitTransport

type SimpleRateLimitTransport struct {
	// contains filtered or unexported fields
}

func (*SimpleRateLimitTransport) RoundTrip

func (t *SimpleRateLimitTransport) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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