Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialer ¶
type Dialer interface {
DialContext(ctx context.Context, network, addr string) (net.Conn, error)
Close() error
}
Dialer defines the interface for establishing connections through SSH. This allows testing with mock implementations.
type Options ¶
type Options struct {
LocalHost string
LocalPort int
RemoteHost string
RemotePort int
Dialer Dialer
}
Options holds configuration for starting a proxy.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy represents a TCP port forwarding proxy.
func (*Proxy) LocalAddress ¶
LocalAddress returns the actual local address the proxy is listening on.
Click to show internal directories.
Click to hide internal directories.