retry

package
v1.5.0-alpha9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func NewChain

func NewChain() *Chain

func (*Chain) Add

func (c *Chain) Add(strategies ...orchestrator.RetryStrategy)

func (*Chain) ShouldRetry

func (c *Chain) ShouldRetry(ctx context.Context, request orchestrator.RetryRequest) bool

type FixedStrategy

type FixedStrategy struct {
	// contains filtered or unexported fields
}

func NewFixedStrategy

func NewFixedStrategy(params FixedStrategyParams) *FixedStrategy

func (*FixedStrategy) ShouldRetry

func (s *FixedStrategy) ShouldRetry(ctx context.Context, request orchestrator.RetryRequest) bool

type FixedStrategyParams

type FixedStrategyParams struct {
	ShouldRetry bool
}

Jump to

Keyboard shortcuts

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