Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
Connector interface can set up a net.Conn for certain media
func NewTCPConnector ¶
NewTCPConnector returns a new TCP connector
func NewTLSConnector ¶
NewTLSConnector returns a Connector, which can be used for TLS connections.
type SSHConnector ¶
type SSHConnector struct { // Connect is the original connection Connect net.Conn // Addr is hostname:port of the SSH endpoint Addr string // Tunnel is hostname:port to be accessed through SSH Tunnel string Client *ssh.Client // contains filtered or unexported fields }
SSHConnector is a Connector, which can connect using SSH through the original Connection
func NewSSHConnector ¶
func NewSSHConnector(addr, tunnel, user, key string) (*SSHConnector, error)
NewSSHConnector sets up a new sshDialer for transmitting data through SSH tunnel
type TCPConnector ¶
type TCPConnector struct{}
TCPConnector is a Connector implementation, providing pure TCP-based connection
type TLSConnector ¶
type TLSConnector struct {
// contains filtered or unexported fields
}
TLSConnector is a Connector implementation to tunnel connections through TLS
Click to show internal directories.
Click to hide internal directories.