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 { … }
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 …
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 { … }