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 RegisterProxy(proto string, f ProxyFunc)
- type Dialer
- type JsonInt
- type Option
- type Options
- type ProxyFunc
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 RegisterProxy ¶
Types ¶
type JsonInt ¶ added in v0.0.2
type JsonInt struct {
// contains filtered or unexported fields
}
func (*JsonInt) MarshalJSON ¶ added in v0.0.2
func (*JsonInt) UnmarshalJSON ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.