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

# Functions

New creates a new instance.
RetryIfForReadRequests is a retry check function used for read requests (e.g.
RetryIfForWriteRequests is a retry check function used for write requests (e.g.
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.

# Constants

DefaultAttempts is the default maximum number of retry attempts.
DefaultDelay is the delay to apply after the first failed attempt.
DefaultDelayFactor is the default multiplication factor to get the successive delay value.
DefaultJitter is the maximum random Jitter time between retries.

# Structs

HTTPRetrier represents an instance of the HTTP retrier.

# Interfaces

HTTPClient contains the function to perform the actual HTTP request.

# Type aliases

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