fastdoh

package module
v0.0.0-...-1a3c7c3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 10 Imported by: 0

README

This is an example of DoH Server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSHandler

type DNSHandler struct {
	DNSClient *fastdns.Client
	Debug     bool
}

func (*DNSHandler) ServeDNS

func (h *DNSHandler) ServeDNS(rw fastdns.ResponseWriter, req *fastdns.Message)

ServeDNS implements fastdns.Handler

type DoHHandler

type DoHHandler struct {
	DNSQuery   string
	DNSHandler fastdns.Handler
	DNSStats   fastdns.Stats
	DoHStats   fastdns.Stats
}

func (*DoHHandler) Handler

func (h *DoHHandler) Handler(ctx *fasthttp.RequestCtx)

func (*DoHHandler) HandlerDoH

func (h *DoHHandler) HandlerDoH(ctx *fasthttp.RequestCtx)

func (*DoHHandler) HandlerMetrics

func (h *DoHHandler) HandlerMetrics(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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