package
1.101.9
Repository: https://github.com/vonage/gosrvlib.git
Documentation: pkg.go.dev

# Functions

DefaultRetryIf is the default function to check the retry condition.
New creates a new instance.
WithAttempts set the maximum number of retries.
WithDelay set the delay after the first failed attempt.
WithDelayFactor set the multiplication factor to get the successive delay value.
WithJitter sets the maximum random Jitter time between retries.
WithRetryIfFn set the function used to decide when retry.
WithTimeout sets the timeout applied to each function call via context.

# Constants

DefaultAttempts is the default maximum number of retry attempts.
DefaultDelay is the default delay to apply after the first failed attempt.
DefaultDelayFactor is the default multiplication factor to get the successive delay value.
DefaultJitter is the default maximum random Jitter time between retries.
DefaultTimeout is the default timeout applied to each function call via context.

# Structs

Retrier represents an instance of the HTTP retrier.

# Type aliases

Option is the interface that allows to set the options.
RetryIfFn is the signature of the function used to decide when retry.
TaskFn is the type of function to be executed.