httpresolver

package
v0.0.0-...-7bc2641 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(upstream *url.URL, caFile string) *httpsResolver

New creates a new HTTPS resolver, which uses the given upstream URL to resolve queries. It will auto-detect the mode (JSON or DoH) by doing a resolution at initialization time.

func NewDoH

func NewDoH(upstream *url.URL, caFile string) *httpsResolver

NewDoH creates a new DoH resolver, which uses the given upstream URL to resolve queries.

func NewJSON

func NewJSON(upstream *url.URL, caFile string) *httpsResolver

NewJSON creates a new JSON resolver which uses the given upstream URL to resolve queries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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