Skip to content

v0.2.1

Compare
Choose a tag to compare
@do87 do87 released this 04 Oct 17:41
· 199 commits to main since this release
3e48f8c

Enhancements

The client now has an integrated retry functionality

Example:

If c is the initialised client, we can now run:

r := retry.New()
err := c.WithRetry(r).ObjectStorage.Buckets.Create(context.TODO(), projectID, bucketName)
if err != nil {
	panic(err)
}

The retry package supports the following functionalities:

  • Maximum retries
  • Timeout
  • Throttle (duration to wait between retries)
  • Is Retryable (determine if an error returned allows retry or stops any further requests)
  • Until (wait for the response to have a certain value / state)

Change from v0.2.0:

re-initialisation of the client now happens during WithRetry