Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Start() Stop() SetInitialBackoff(time.Duration) SetMaxBackoff(time.Duration) }
Interface does f in a loop, sleeping for initialBackoff between each iterations. If it hits an error, it exponentially backs off to maxBackoff. Backoff will log when it backs off, but will stop logging when it reaches maxBackoff. It will also log on first success.
Click to show internal directories.
Click to hide internal directories.