doh

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

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

func NewUpstream added in v5.2.0

func NewUpstream(endPoint string, rt http.RoundTripper, logger *zap.Logger) (*Upstream, error)

func (*Upstream) ExchangeContext

func (u *Upstream) ExchangeContext(ctx context.Context, q []byte) (*[]byte, error)

Jump to

Keyboard shortcuts

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