package
Version:
v0.0.8
Opens a new window with list of versions in this module.
Published: Nov 6, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var DefaultOptions = []retry.Option{
retry.LastErrorOnly(true),
retry.Delay(time.Second),
retry.DelayType(retry.FixedDelay),
}
type Config[T any] struct {
If func(err error) bool
Options []retry.Option
}
func (rc Config[T]) Do(f retry.RetryableFuncWithData[T]) (T, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.