Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocksProxy ¶
type SocksProxy struct {
// contains filtered or unexported fields
}
SocksProxy holds the proxy address and wether to use it
func NewSocksProxy ¶
func NewSocksProxy(useProxy bool, proxyAddress string) SocksProxy
NewSocksProxy returns a new socks proxy instance
func (*SocksProxy) GetHTTPClient ¶
func (socksProxy *SocksProxy) GetHTTPClient() (*http.Client, error)
GetHTTPClient returns a http client. Requests made with this client are proxied, if useProxy is true.
func (*SocksProxy) GetTCPProxyDialer ¶
func (socksProxy *SocksProxy) GetTCPProxyDialer() (proxy.Dialer, error)
GetTCPProxyDialer returns a tcp connection. The connection is proxied, if useProxy is true.
Click to show internal directories.
Click to hide internal directories.