Documentation
¶
Overview ¶
Package transient retries a read from a forge that failed for a reason that can pass by itself: a timeout, a refused or reset connection, or a busy server.
Index ¶
Constants ¶
View Source
const Attempts = 4
Attempts bounds Retry, the first attempt included.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is reports whether err is a failure worth trying again: a timeout, a reset or refused connection, or a 500, 502, 503 or 504. A run out of its own time is not, since trying again cannot give it more.
Only a failure before the forge answers can be recognised. go-git v5 flattens an error met while decoding the response into text.
Types ¶
Click to show internal directories.
Click to hide internal directories.