package
0.0.0-20240807081055-8185c1100791
Repository: https://github.com/scaleway/taskor.git
Documentation: pkg.go.dev

# Functions

CountDownRetry return an implementation of RetryMechanism interface.
ExponentialBackOffRetry return an implementation of RetryMechanism interface.
NewCountDownRetryFromDefinition initialize CountDownRetry from RetryMechanismDefinition.
NewExponentialBackOffRetryFromDefinition initialize ExponentialBackOffRetry from RetryMechanismDefinition.
NewRetryMechanismFromDefinition initialize RetryMechanism interface from a given definition.
SetFactor define factor to use Factor is the multiplying factor for each increment step.
SetJitter define if jitter must be used Jitter eases contention by randomizing backoff steps.
SetMax define maximum amount of time to wait before next retry.
SetMin define minimum amount of time to wait before nex retry.

# Variables

CountDownRetryMechanismType ...
ErrCountDownRetryInvalidDuration Raise invalid duration when duration from params can't be parsed as Duration.
ErrCountDownRetryInvalidParams Raise invalid params when a params is not found.
ErrExponentialBackOffRetryInvalidDuration Raise invalid duration when duration from params can't be parsed as Duration.
ErrExponentialBackOffRetryInvalidParams Raise invalid params when a params is not found.
ErrRetryMechanismTypeNotImplemented Raise error when mechanism type is not found in mechanismTypes.
ExponentialBackOffRetryMechanismType ...

# Structs

RetryMechanismDefinition ...

# Interfaces

RetryMechanism interface to handling different way to waiting before retry a task.

# Type aliases

ExponentialBackOffRetryOption Implement Option pattern This permit to define a list of option available to pass to the constructor.
RetryMechanismType ...