Versions in this module Expand all Collapse all v0 v0.11.0 Nov 7, 2022 Changes in this version + const Name + type Client struct + func NewClient(ctx context.Context, _ tunnel.Client) (*Client, error) + func (c *Client) Close() error + func (c *Client) DialConn(*tunnel.Address, tunnel.Tunnel) (tunnel.Conn, error) + func (c *Client) DialPacket(tunnel.Tunnel) (tunnel.PacketConn, error) + type Config struct + LocalHost string + LocalPort int + RemoteHost string + RemotePort int + TransportPlugin TransportPluginConfig + type Conn struct + func (c *Conn) Metadata() *tunnel.Metadata + type Server struct + func NewServer(ctx context.Context, _ tunnel.Server) (*Server, error) + func (s *Server) AcceptConn(overlay tunnel.Tunnel) (tunnel.Conn, error) + func (s *Server) AcceptPacket(tunnel.Tunnel) (tunnel.PacketConn, error) + func (s *Server) Close() error + type TransportPluginConfig struct + Arg []string + Command string + Enabled bool + Env []string + Option string + Type string + type Tunnel struct + func (*Tunnel) Name() string + func (*Tunnel) NewClient(ctx context.Context, client tunnel.Client) (tunnel.Client, error) + func (*Tunnel) NewServer(ctx context.Context, server tunnel.Server) (tunnel.Server, error)