Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer struct { // ProxyDial specifies the optional dial function for // establishing the transport connection. ProxyDial func(context.Context, string, string) (net.Conn, error) // contains filtered or unexported fields }
func NewDialer ¶
NewDialer returns a new Dialer that dials through the provided proxy server's network and address.
func (*Dialer) CommandDialContext ¶
func (*Dialer) DialContext ¶
type SimpleServer ¶
type SimpleServer struct { Server Listener net.Listener Username string Password string Network string Address string }
SimpleServer is a simplified server, which can be configured as easily as client.
func NewSimpleServer ¶
func NewSimpleServer(addr string) (*SimpleServer, error)
NewSimpleServer creates a new NewSimpleServer
func (*SimpleServer) ProxyURL ¶
func (s *SimpleServer) ProxyURL() string
ProxyURL returns the URL of the proxy
Click to show internal directories.
Click to hide internal directories.