handles

package
v0.0.0-...-aaec902 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParserUrl

func ParserUrl(domain, ip string) ([]string, bool)

Types

type Handler

type Handler struct {
	Hosts     *service.Host
	Cache     *backends.Memory
	Resolv    *service.Resolver
	Logger    *logger.Logger
	QueryFlag bool
}

func NewHandler

func NewHandler(queryFlag bool, logfile string) *Handler

func (*Handler) DoTCP

func (h *Handler) DoTCP(w dns.ResponseWriter, req *dns.Msg)

func (*Handler) DoUDP

func (h *Handler) DoUDP(w dns.ResponseWriter, req *dns.Msg)

type Server

type Server struct {
	Host     string
	Port     int
	RTimeout time.Duration
	WTimeout time.Duration
}

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Run

func (s *Server) Run(queryFlag bool, logfile string)

Jump to

Keyboard shortcuts

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