package
1.10.20
Repository: https://github.com/code-payments/code-server.git
Documentation: pkg.go.dev

# Packages

Package backoff provides varies backoff strategies for retry.

# Functions

Backoff returns a strategy that will delay the next retry, provided the action resulted in an error.
BackoffWithJitter returns a strategy similar to Backoff, but induces a jitter on the total delay.
Limit returns a strategy that limits the total number of retries.
Loop executes the provided action infinitely, until one of the provided strategies indicates it should not be retried.
NewRetrier returns a Retrier that will retry actions based off of the provided strategies.
NonRetriableErrors returns a strategy that specifies which errors should not be retried.
NonRetriableGRPCCodes returns a strategy that specifies which GRPC status codes should not be retried.
RetriableErrors returns a strategy that specifies which errors can be retried.
RetriableGRPCCodes returns a strategy that specifies which GRPC status codes can be retried.
Retry executes the provided action, potentially multiple times based off of the provided strategies.

# Interfaces

Retrier retries the provided action.

# Type aliases

Action is a function to be performed in a retriable manner.
Strategy is a function that determines whether or not an action should be retried.