retryhttp

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package retryhttp configures retryablehttp.Client with sane defaults and defines its retry policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(timeout time.Duration, rt http.RoundTripper) *http.Client

NewClient returns http.Client with preconfigured retry feature.

Types

type NonRetryableError

type NonRetryableError struct{ Err error }

NonRetryableError signifies to the retryablehttp.Client that the request should not be retired.

func (NonRetryableError) Error

func (n NonRetryableError) Error() string

Jump to

Keyboard shortcuts

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