retry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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 Handler

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

func NewRetryHandler

func NewRetryHandler(maxRetries int, backoffTime time.Duration) *Handler

func (*Handler) Execute

func (h *Handler) Execute(operation func() error) error

func (*Handler) GetStats

func (h *Handler) GetStats() Stats

func (*Handler) Reset

func (h *Handler) Reset()

func (*Handler) Retryable

func (h *Handler) Retryable() bool

type Stats

type Stats struct {
	Attempts int
	Failures int
}

Jump to

Keyboard shortcuts

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