dns

package
v0.3.1-rc.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

type DNS interface {
	LookupIP(ctx context.Context, domain string) ([]net.IP, error)
	Record(ctx context.Context, domain string, _ dnsmessage.Type) (_ []net.IP, ttl uint32, err error)
	Do(ctx context.Context, domain string, raw []byte) ([]byte, error)
	io.Closer
}

type ErrorDNS

type ErrorDNS func(domain string) error

func (ErrorDNS) Close

func (e ErrorDNS) Close() error

func (ErrorDNS) Do

func (e ErrorDNS) Do(context.Context, string, []byte) ([]byte, error)

func (ErrorDNS) LookupIP

func (e ErrorDNS) LookupIP(_ context.Context, domain string) ([]net.IP, error)

func (ErrorDNS) Record

func (e ErrorDNS) Record(_ context.Context, domain string, _ dnsmessage.Type) ([]net.IP, uint32, error)

Jump to

Keyboard shortcuts

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