Documentation
¶
Index ¶
- func CheckIfPathExist(path string) bool
- func ConnectionChecker(url string) error
- func DecryptValue(encryptedValue string) (string, error)
- func Getenv(key string) string
- func ReadYAML(path string, result interface{}) error
- func Retry(f func() error, operationName string, config RetryConfig) error
- type RetryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfPathExist ¶
func ConnectionChecker ¶
func DecryptValue ¶
Types ¶
type RetryConfig ¶
type RetryConfig struct {
MaxRetries int // Maximum number of retry attempts (-1 for unlimited)
InitialBackoff time.Duration // Initial wait time before the first retry attempt
MaxBackoff time.Duration // Maximum wait time between retry attempts (upper limit for exponential backoff)
BackoffMultiplier float64 // Growth factor for exponential backoff (0 = fixed wait, >1 = exponential growth)
LogInterval int // Log every N attempts (0 = log only once, >0 = log periodically)
ErrorFilter []string // List of error message substrings to match for retry (nil = retry all errors)
StopOnMismatch bool // If true, return error when it doesn't match ErrorFilter; if false, continue without retrying
}
func ConnectionRetryConfig ¶
func ConnectionRetryConfig() RetryConfig
func DefaultRetryConfig ¶
func DefaultRetryConfig() RetryConfig
Click to show internal directories.
Click to hide internal directories.