Versions in this module Expand all Collapse all v1 v1.0.0 Dec 14, 2025 Changes in this version + var ErrNoRoutes = &errString + func BuildProxy(up *url.URL, transport http.RoundTripper) *httputil.ReverseProxy + func NewTransport(cfg TransportConfig) *http.Transport + func StripPath(path string, strip string) string + type Route struct + AuthRequired bool + Name string + PathPrefix string + Proxy *httputil.ReverseProxy + RateLimit RouteRateLimit + StripPrefix string + Upstream *url.URL + type RouteRateLimit struct + Burst float64 + Enabled bool + RPS float64 + Scope string + type Router struct + func New(routes []Route) (*Router, error) + func (r *Router) Match(path string) *Route + type TransportConfig struct + DialTimeout time.Duration + IdleConnTimeout time.Duration + MaxIdleConns int + MaxIdleConnsPerHost int + ResponseHeaderTimeout time.Duration + TLSHandshakeTimeout time.Duration