Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a generic HTTP client with retry logic
type Config ¶
type Config struct {
// Timeout is the HTTP client timeout for requests
Timeout time.Duration
// MaxRetries is the maximum number of retry attempts for failed requests
MaxRetries int
// RetryDelay is the delay between retry attempts
RetryDelay time.Duration
// RetryBackoff enables exponential backoff for retries
RetryBackoff bool
}
Config holds the configuration for the HTTP client
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults
type RetryableError ¶
RetryableError represents an error that can be retried
func (*RetryableError) Error ¶
func (e *RetryableError) Error() string
Click to show internal directories.
Click to hide internal directories.