dnsdialer

package module
v0.0.0-...-8d77a2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 7 Imported by: 1

README

dnsdialer

HTTP network dialer, with custom DNS resolver

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPClient

func HTTPClient(dnsResolvers []net.Addr) *http.Client

func ParseResolver

func ParseResolver(address string) net.Addr

func ParseResolvers

func ParseResolvers(addresses string) []net.Addr

Types

type AddressError

type AddressError struct {
	// contains filtered or unexported fields
}

func (*AddressError) Error

func (ae *AddressError) Error() string

type ConnectionError

type ConnectionError struct {
	// contains filtered or unexported fields
}

func (*ConnectionError) Error

func (ce *ConnectionError) Error() string

type Dialer

type Dialer interface {
	Dial(network, address string) (net.Conn, error)
}

func NewDialer

func NewDialer(dnsResolvers []net.Addr) Dialer

type ResolverError

type ResolverError struct {
	// contains filtered or unexported fields
}

func (*ResolverError) Error

func (re *ResolverError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL