types

package
v0.7.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryHandler

type RetryHandler interface {
	Validate() error
	MustExecuteAttempt(attempt int) bool
	Delay(attempt int) time.Duration
	StringAttempt(attempt int) string
	String() string
}

type RetryPolicyConfigurer

type RetryPolicyConfigurer interface {
	// Validate configuration
	Validate() error
	// NewRetryHandler returns a RetryHandler based on the configuration
	NewRetryHandler() (RetryHandler, error)
	// String returns a string representation of the configuration
	String() string
	// Brief is a brief string representation of the object
	Brief() string
}

RetryPolicyConfigurer is an interface that defines methods for configuring retry policies. Each class that implements a retry policy configuration should implement this interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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