Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSSHClientConfig ¶
func NewSSHClientConfig(user string, hostKeyCallback ssh.HostKeyCallback, authMethods ...ssh.AuthMethod) *ssh.ClientConfig
func StartTestSSHServer ¶
Types ¶
type Socks5Proxy ¶
type Socks5Proxy struct {
// contains filtered or unexported fields
}
func NewSocks5Proxy ¶
func NewSocks5Proxy(hostKey hostKey, logger *log.Logger, keepAliveInterval time.Duration) *Socks5Proxy
func (*Socks5Proxy) Addr ¶
func (s *Socks5Proxy) Addr() (string, error)
func (*Socks5Proxy) Dialer ¶
func (s *Socks5Proxy) Dialer(username, key, url string) (DialFunc, error)
func (*Socks5Proxy) Start ¶
func (s *Socks5Proxy) Start(username, key, url string) error
func (*Socks5Proxy) StartWithDialer ¶
func (s *Socks5Proxy) StartWithDialer(dialer DialFunc) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.