doh

package
v4.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

type Upstream struct {
	// EndPoint is the DoH server URL.
	EndPoint string
	// Client is a http.Client that sends http requests.
	Client *http.Client

	// AddOnCloser will be closed when Upstream is closed.
	AddOnCloser io.Closer
}

Upstream is a DNS-over-HTTPS (RFC 8484) upstream.

func (*Upstream) Close

func (u *Upstream) Close() error

func (*Upstream) CloseIdleConnections

func (u *Upstream) CloseIdleConnections()

func (*Upstream) ExchangeContext

func (u *Upstream) ExchangeContext(ctx context.Context, q *dns.Msg) (*dns.Msg, error)

Jump to

Keyboard shortcuts

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