retry

package module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

retry

custom github.com/eapache/go-resiliency retrier, will do the retry on when

  • net.Error
  • Server returns 500,502/504/429 status code
  • Service returns errors.Retry error
  • Service returns unmarshalling error

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetrier

func NewRetrier(maxRetries int, initialBackoff time.Duration) *retrier.Retrier

NewRetrier create a ExponentialBackoff retrier

Types

This section is empty.

Jump to

Keyboard shortcuts

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