Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
Proxy is the inbound portion of a Tunnel
type Tunnel ¶
type Tunnel struct { Config // contains filtered or unexported fields }
Tunnel represents an SSH tunnel with proxy capabilities. Both tcpforwarder client and server are Tunnels. tcpforwarder client has a single set of remotes, whereas tcpforwarder server has multiple sets of remotes (one set per client). Each remote has a 1:1 mapping to a proxy. Proxies listen, send data over ssh, and the other end of the ssh connection communicates with the endpoint and returns the response.
func (*Tunnel) BindRemotes ¶
BindRemotes converts the given remotes into proxies, and blocks until the caller cancels the context or there is a proxy error.
Click to show internal directories.
Click to hide internal directories.