Documentation ¶
Index ¶
- func HTTPProxyDialer(proxyAddr string) func(ctx context.Context, network, addr string) (net.Conn, error)
- func SocksDialer(proxyAddr string) func(ctx context.Context, network, addr string) (net.Conn, error)
- type Resolver
- func (r *Resolver) DefaultTransport(dialContext func(ctx context.Context, network, addr string) (net.Conn, error)) *http.Transport
- func (r *Resolver) DialerWithCustomDNSResolver(dnsServers []string) func(ctx context.Context, network, addr string) (net.Conn, error)
- func (r *Resolver) DialerWithRandomDNSResolver() func(ctx context.Context, network, addr string) (net.Conn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPProxyDialer ¶
Types ¶
type Resolver ¶ added in v1.5.0
type Resolver struct {
DNSServers []string
}
func NewResolver ¶ added in v1.5.0
func NewResolver() *Resolver
func (*Resolver) DefaultTransport ¶ added in v1.5.0
func (*Resolver) DialerWithCustomDNSResolver ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.