dns2json

package
v0.0.0-...-f39c4bf Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LookupTimeout        = 5 * time.Second
	LookupResponseMaxTtl = 86400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupHandler

type LookupHandler struct {
	// PathRegex must fully validate the path and capture the name and type
	PathRegex *regexp.Regexp
	Upstream  string
}

func (*LookupHandler) ServeHTTP

func (h *LookupHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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