http

package
v0.6.39 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBackoff = Backoff{1.0 * time.Second, 2.0, 0.1}
View Source
var DefaultRetry = Retry{200 * time.Millisecond, 3 * time.Second, 3}

Functions

func NewTracingRoundTripper

func NewTracingRoundTripper(transport http.RoundTripper) http.RoundTripper

func NewTracingRoundTripperWithLogger

func NewTracingRoundTripperWithLogger(transport http.RoundTripper, l *log.Logger) http.RoundTripper

Types

type Backoff

type Backoff struct {
	Duration time.Duration
	Factor   float64
	Jitter   float64
}

type Retry

type Retry struct {
	MinWait  time.Duration
	MaxWait  time.Duration
	MaxRetry int
}

Jump to

Keyboard shortcuts

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