doq

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolError = 0x2
	NoError       = 0x0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

type ResponseWriter struct {
	dns.ResponseWriter

	Conn   quic.Connection
	Stream quic.Stream
}

func (*ResponseWriter) Close

func (w *ResponseWriter) Close() error

func (*ResponseWriter) LocalAddr

func (w *ResponseWriter) LocalAddr() net.Addr

func (*ResponseWriter) RemoteAddr

func (w *ResponseWriter) RemoteAddr() net.Addr

func (*ResponseWriter) Write

func (w *ResponseWriter) Write(m []byte) (int, error)

func (*ResponseWriter) WriteMsg

func (w *ResponseWriter) WriteMsg(m *dns.Msg) error

type Server

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

func (*Server) ListenAndServeQUIC

func (s *Server) ListenAndServeQUIC(tlsCert, tlsKey string) error

func (*Server) Shutdown

func (s *Server) Shutdown() error

Jump to

Keyboard shortcuts

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