Versions in this module Expand all Collapse all v1 v1.5.43 May 2, 2024 v1.5.42 May 2, 2024 Changes in this version + func UnderlyingConn(c net.Conn) net.Conn + type Conn struct + HostName string + Peeked []byte + func (c *Conn) Read(p []byte) (n int, err error) + type DialProxy struct + Addr string + DialContext func(ctx context.Context, network, address string) (net.Conn, error) + DialTimeout time.Duration + KeepAlivePeriod time.Duration + OnDialError func(src net.Conn, dstDialErr error) + ProxyProtocolVersion int + func To(addr string) *DialProxy + func (dp *DialProxy) HandleConn(src net.Conn) + type Matcher func(ctx context.Context, hostname string) bool + type Proxy struct + ListenFunc func(net, laddr string) (net.Listener, error) + func (p *Proxy) AddRoute(ipPort string, dest Target) + func (p *Proxy) Close() error + func (p *Proxy) Run() error + func (p *Proxy) Start() error + func (p *Proxy) Wait() error + type Target interface + HandleConn func(net.Conn)