Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(cfg *ClientConfig) *http.Client
NewClient creates a new HTTP client with the given configuration
Types ¶
type ClientConfig ¶
ClientConfig holds HTTP client configuration
func DefaultClientConfig ¶
func DefaultClientConfig() *ClientConfig
DefaultClientConfig returns default HTTP client configuration
type RetryableClient ¶
type RetryableClient struct {
// contains filtered or unexported fields
}
RetryableClient wraps an HTTP client with retry logic
func NewRetryableClient ¶
func NewRetryableClient(cfg *ClientConfig) *RetryableClient
NewRetryableClient creates a new retryable HTTP client
func NewRetryableClientWithHTTPClient ¶
func NewRetryableClientWithHTTPClient(client *http.Client) *RetryableClient
NewRetryableClientWithHTTPClient creates a RetryableClient with a custom http.Client (for testing)
func (*RetryableClient) GetClient ¶
func (c *RetryableClient) GetClient() *http.Client
GetClient returns the underlying HTTP client
Click to show internal directories.
Click to hide internal directories.