retry

package
v0.434.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryConfig

type RetryConfig struct {
	Min    time.Duration `help:"Minimum retry interval" default:"100ms"`
	Max    time.Duration `help:"Maximum retry interval" default:"10s"`
	Factor float64       `help:"Factor to multiply the retry interval by" default:"2"`
	Jitter bool          `help:"Whether to add jitter to the retry interval" default:"true"`
}

RetryConfig is a Kong compatible configuration for creating backoff.Backoff instances.

func (*RetryConfig) Backoff

func (c *RetryConfig) Backoff() *backoff.Backoff

Jump to

Keyboard shortcuts

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