Versions in this module Expand all Collapse all v0 v0.2.0 May 23, 2026 v0.1.0 Mar 23, 2026 Changes in this version + var ErrNoHealthy = errors.New("httpx: no healthy endpoints available") + type Closer struct + func Transport(endpoints []Endpoint, opts ...Option) (middleware.Middleware, *Closer) + func (c *Closer) Close() + type Endpoint struct + Meta map[string]string + URL string + Weight int + type HealthChecker struct + func (h *HealthChecker) Healthy(endpoints []Endpoint) []Endpoint + func (h *HealthChecker) IsHealthy(ep Endpoint) bool + func (h *HealthChecker) Start(endpoints []Endpoint) + func (h *HealthChecker) Stop() + type HealthOption func(*HealthChecker) + func WithHealthInterval(d time.Duration) HealthOption + func WithHealthPath(path string) HealthOption + func WithHealthTimeout(d time.Duration) HealthOption + type Option func(*options) + func WithHealthCheck(opts ...HealthOption) Option + func WithStrategy(s Strategy) Option + type Strategy interface + Next func(healthy []Endpoint) (Endpoint, error) + func Failover() Strategy + func RoundRobin() Strategy + func WeightedRandom() Strategy