Versions in this module Expand all Collapse all v1 v1.2.0 Jul 13, 2025 v1.1.0 Jun 6, 2025 Changes in this version + type Option func(r *Router) + func WithDefaultRoute(r *Route) Option + func WithDialer(d proxy.Dialer) Option + func WithRoutes(routes []Route) Option + type Proxy struct + Addr addr.Addr + Proto proxy.Proto + type Route struct + Hosts []string + Proxy Proxy + type Router struct + func New(ops ...Option) *Router + func (r *Router) Dial(ctx context.Context, dstAddr *addr.Addr) (net.Conn, error)