Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableRetries ¶
DisableRetries disables retries for Execute.
func EnableRetries ¶
EnableRetries enables retries for Execute (the default behavior).
func ErrorIsRetriable ¶
ErrorIsRetriable determines whether an error would be retried by Execute.
func Execute ¶
Execute attempts a GoB operation with retries.
Execute mitigates the effects of short-lived outages and replication lag by retrying operations with certain error codes. The service client's error should be returned in order to correctly detect this situation. The retries will use exponential backoff with a context with the clock tagged with "gob-retry". When performing retries, a log will be emitted that uses opName to identify the operation that is being retried.
Retries will not be performed in the following cases:
- The provided context is one that has had DisableRetries called on it more recently than EnableRetries
- The error returned from the operation is tagged with DontRetry
Types ¶
This section is empty.