doh

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDoH

func AddDoH(registry endpoint.HandlerRegistry, logger logging.Logger, emitter audit.Emitter)

func DNSQueryHandler

func DNSQueryHandler(logger logging.Logger, handler dns.Handler) http.Handler

func New

func New(logger logging.Logger, emitter audit.Emitter) *dohHandler

Types

type Server

type Server struct {
	Handler dns.Handler
	// contains filtered or unexported fields
}

func NewServer

func NewServer(handler http.Handler) *Server

func (Server) Close

func (s Server) Close() error

func (Server) Serve

func (s Server) Serve(listener net.Listener) error

func (Server) Shutdown

func (s Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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