bundled_upstream

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundledUpstream

type BundledUpstream struct {
	// contains filtered or unexported fields
}

func NewBundledUpstream

func NewBundledUpstream(us []Upstream, logger *zap.Logger) *BundledUpstream

NewBundledUpstream creates a BundledUpstream. us must contain at least one Upstream. To disable logger, set it to nil.

func (*BundledUpstream) ExchangeParallel

func (bu *BundledUpstream) ExchangeParallel(ctx context.Context, qCtx *handler.Context) (*dns.Msg, error)

type Upstream

type Upstream interface {
	Exchange(ctx context.Context, q *dns.Msg) (*dns.Msg, error)
	Address() string
	Trusted() bool
}

Jump to

Keyboard shortcuts

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