Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(opts *options)
Option is a specific option for repeater.
func WithAttempts ¶
WithAttempts set max number of attempts in case of failure(3 by default).
func WithFactor ¶
WithFactor set factor for exponential backoff timeout calculation(0 by default).
func WithJitter ¶
WithJitter enable/disable jitter for exponential backoff timeout calculation(false by default).
func WithLogger ¶
WithLogger set custom logger (no logger by default).
func WithTimeout ¶
WithTimeout set a timeout between failure attempts(no timeout by default).
Click to show internal directories.
Click to hide internal directories.