Documentation
¶
Index ¶
- Variables
- func CreateTransport(o *Options) *http.Transport
- func GetFreePort() (int, error)
- func New(proxyURL string, options ...Option) (*http.Client, error)
- func Ping(host string, port string, timeout time.Duration) bool
- func ProxyHTTP(u *url.URL, o *Options) (http.RoundTripper, error)
- func ProxySocks4(u *url.URL, o *Options) (http.RoundTripper, error)
- func ProxySocks5(u *url.URL, o *Options) (http.RoundTripper, error)
- func RegisterParser(proto string, f FuncParser)
- func RegisterProxy(proto string, f ProxyFunc)
- type Dialer
- type FuncParser
- type Int
- type Option
- type Options
- type ProxyFunc
- type URL
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnknownProxy = errors.New("proxyclient: unknown proxy protocol")
)
Functions ¶
func CreateTransport ¶ added in v0.0.2
func GetFreePort ¶ added in v0.0.2
func ProxySocks4 ¶
func ProxySocks5 ¶
func RegisterParser ¶ added in v0.0.3
func RegisterParser(proto string, f FuncParser)
func RegisterProxy ¶
Types ¶
type Int ¶ added in v0.0.3
type Int struct {
// contains filtered or unexported fields
}
func (*Int) MarshalJSON ¶ added in v0.0.3
func (*Int) UnmarshalJSON ¶ added in v0.0.3
Source Files
¶
Click to show internal directories.
Click to hide internal directories.