Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
Types ¶
type RetryTransport ¶ added in v0.9.0
type RetryTransport struct {
// contains filtered or unexported fields
}
RetryTransport wraps an http.RoundTripper with retry logic for transient failures. It retries on connection errors, 429 (rate limited), and 5xx (server error) responses.
func NewRetryTransport ¶ added in v0.9.0
func NewRetryTransport(name string, t http.RoundTripper, maxRetry int) *RetryTransport
Click to show internal directories.
Click to hide internal directories.