Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2026 Changes in this version + type BatchExecutor struct + func NewBatchExecutor(driver httpclient.Driver, maxWorkers int) *BatchExecutor + func (be *BatchExecutor) Do(req httpclient.Request) (httpclient.Response, error) + func (be *BatchExecutor) ExecuteBatch(ctx context.Context, requests []httpclient.Request) BatchResult + func (be *BatchExecutor) Request(method, url string, body io.Reader) (httpclient.Request, error) + func (be *BatchExecutor) ResetStats() + func (be *BatchExecutor) Stats() BatchStats + type BatchRequest struct + Error error + Index int + Request httpclient.Request + Response httpclient.Response + type BatchResult struct + Completed int + Duration time.Duration + EndTime time.Time + Errors int + Requests []BatchRequest + StartTime time.Time + type BatchStats struct + AverageDuration time.Duration + ErrorRate float64 + TotalCompleted int64 + TotalDuration time.Duration + TotalErrors int64 + TotalRequests int64 + type ConnectionPool struct + func NewConnectionPool(driver httpclient.Driver) *ConnectionPool + func (cp *ConnectionPool) DisableHealthCheck() + func (cp *ConnectionPool) Do(req httpclient.Request) (httpclient.Response, error) + func (cp *ConnectionPool) EnableHealthCheck(hosts []string, interval time.Duration) + func (cp *ConnectionPool) Request(method, url string, body io.Reader) (httpclient.Request, error) + func (cp *ConnectionPool) ResetStats() + func (cp *ConnectionPool) SetRetryPolicy(maxRetries int, retryDelay time.Duration) + func (cp *ConnectionPool) Stats() ConnectionPoolStats + func (cp *ConnectionPool) Stop() + func (cp *ConnectionPool) WarmupConnections(ctx context.Context, hosts []string, connectionsPerHost int) error + type ConnectionPoolStats struct + ActiveConnections int64 + ConnectionAttempts int64 + ConnectionFailures int64 + HealthCheckEnabled bool + HealthCheckHosts int + HealthCheckInterval time.Duration + MaxRetries int + RetryDelay time.Duration + SuccessRate float64 + TotalConnections int64 + type RateLimitedExecutor struct + func NewRateLimitedExecutor(driver httpclient.Driver, requestsPerSecond int, maxWorkers int) *RateLimitedExecutor + func (rle *RateLimitedExecutor) Do(req httpclient.Request) (httpclient.Response, error) + func (rle *RateLimitedExecutor) Execute(ctx context.Context, req httpclient.Request) (httpclient.Response, error) + func (rle *RateLimitedExecutor) ExecuteWithTimeout(req httpclient.Request, timeout time.Duration) (httpclient.Response, error) + func (rle *RateLimitedExecutor) Request(method, url string, body io.Reader) (httpclient.Request, error) + func (rle *RateLimitedExecutor) ResetStats() + func (rle *RateLimitedExecutor) Stats() RateLimiterStats + func (rle *RateLimitedExecutor) Stop() + func (rle *RateLimitedExecutor) UpdateRate(requestsPerSecond int) + type RateLimiterStats struct + QueueCapacity int + QueueSize int + RequestsPerSecond int + ThrottleRate float64 + TotalExecuted int64 + TotalRequests int64 + TotalThrottled int64