transport

package
v0.0.0-...-59d2d35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = time.Second * 5

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryableTransport

type RetryableTransport struct {
	Transport        http.RoundTripper
	NumRetries       int
	RetryTimeout     time.Duration
	RetryStatusCodes []string
	HTTPHeaders      map[string]string
}

func (*RetryableTransport) RoundTrip

func (t *RetryableTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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