Versions in this module Expand all Collapse all v0 v0.11.1 Feb 22, 2025 v0.11.0 Apr 6, 2024 Changes in this version + func RegisterTunnel(name string, tunnel Tunnel) + type Address struct + DomainName string + NetworkType string + Port int + func NewAddressFromAddr(network string, addr string) (*Address, error) + func NewAddressFromHostPort(network string, host string, port int) *Address + func (a *Address) Network() string + func (a *Address) ReadFrom(r io.Reader) error + func (a *Address) ResolveIP() (net.IP, error) + func (a *Address) String() string + func (a *Address) WriteTo(w io.Writer) error + type AddressType byte + const DomainName + const IPv4 + const IPv6 + type Client interface + type Command byte + type Conn interface + Metadata func() *Metadata + type ConnDialer interface + DialConn func(*Address, Tunnel) (Conn, error) + type ConnListener interface + AcceptConn func(Tunnel) (Conn, error) + type Dialer interface + type Listener interface + type Metadata struct + func (r *Metadata) Network() string + func (r *Metadata) ReadFrom(rr io.Reader) error + func (r *Metadata) String() string + func (r *Metadata) WriteTo(w io.Writer) error + type PacketConn interface + ReadWithMetadata func([]byte) (int, *Metadata, error) + WriteWithMetadata func([]byte, *Metadata) (int, error) + type PacketDialer interface + DialPacket func(Tunnel) (PacketConn, error) + type PacketListener interface + AcceptPacket func(Tunnel) (PacketConn, error) + type Server interface + type Tunnel interface + Name func() string + NewClient func(context.Context, Client) (Client, error) + NewServer func(context.Context, Server) (Server, error) + func GetTunnel(name string) (Tunnel, error)