hetznercloud / hcloud-go

A Go library for the Hetzner Cloud API
https://pkg.go.dev/github.com/hetznercloud/hcloud-go/v2/hcloud
MIT License
371 stars 45 forks source link

feat(exp): add retry package #479

Open jooola opened 2 months ago

jooola commented 2 months ago

Adds a few retry utilities that may be used in certain context to retry failed requests based on a policy.

Related to #470

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.

Project coverage is 71.65%. Comparing base (756f605) to head (ac6a961).

Files Patch % Lines
hcloud/exp/retryutils/retry.go 89.47% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #479 +/- ## ========================================== + Coverage 71.56% 71.65% +0.08% ========================================== Files 45 46 +1 Lines 3904 3923 +19 ========================================== + Hits 2794 2811 +17 - Misses 696 698 +2 Partials 414 414 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.