go/src/net/resolverdialfunc_test.go

func TestResolverDialFunc(t *testing.T) {}

func sortedIPStrings(ips []IP) []string {}

func newResolverDialFunc(h *resolverDialHandler) func(ctx context.Context, network, address string) (Conn, error) {}

type resolverDialHandler

type ResponseWriter

func (w ResponseWriter) header() dnsmessage.ResourceHeader {}

// SetTTL sets the TTL for subsequent written resources.
// Once a resource has been written, SetTTL calls are no-ops.
// That is, it can only be called at most once, before anything
// else is written.
func (w ResponseWriter) SetTTL(seconds uint32) {}

type AWriter

func (w AWriter) AddIP(v4 [4]byte) {}

type AAAAWriter

func (w AAAAWriter) AddIP(v6 [16]byte) {}

type SRVWriter

// AddSRV adds a SRV record. The target name must end in a period and
// be 63 bytes or fewer.
func (w SRVWriter) AddSRV(priority, weight, port uint16, target string) error {}

var ErrNotExist

var ErrRefused

type resolverFuncConn

func (*resolverFuncConn) Close() error                       {}

func (*resolverFuncConn) LocalAddr() Addr                    {}

func (*resolverFuncConn) RemoteAddr() Addr                   {}

func (*resolverFuncConn) SetDeadline(t time.Time) error      {}

func (*resolverFuncConn) SetReadDeadline(t time.Time) error  {}

func (*resolverFuncConn) SetWriteDeadline(t time.Time) error {}

func (a *resolverFuncConn) Read(p []byte) (n int, err error) {}

func (a *resolverFuncConn) Write(packet []byte) (n int, err error) {}

type someaddr

func (someaddr) Network() string {}

func (someaddr) String() string  {}

func mapRCode(err error) dnsmessage.RCode {}