package
0.3.1
Repository: https://github.com/icinga/icinga-go-library.git
Documentation: pkg.go.dev

# Functions

ResetTimeout changes the possibly expired timer t to expire after duration d.
Retryable returns true for common errors that are considered retryable, i.e.
WithBackoff retries the passed function if it fails and the error allows it to retry.

# Constants

DefaultTimeout is our opinionated default timeout for retrying database and Redis operations.

# Structs

Settings aggregates optional settings for WithBackoff.

# Type aliases

IsRetryable checks whether a new attempt can be started based on the error passed.
OnRetryableErrorFunc is called if a retryable error occurs.
OnSuccessFunc is called once the operation succeeds.
RetryableFunc is a retryable function.