Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolError = 0x2 NoError = 0x0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v1.8.0
Handler serves one decoded DoQ request through the server's message entry — SDNS's own contract, not the miekg handler machinery.
type ResponseWriter ¶
ResponseWriter is the middleware.Transport for DNS-over-QUIC.
func (*ResponseWriter) Close ¶
func (w *ResponseWriter) Close() error
func (*ResponseWriter) LocalAddr ¶
func (w *ResponseWriter) LocalAddr() net.Addr
func (*ResponseWriter) Proto ¶ added in v1.8.0
func (w *ResponseWriter) Proto() string
Proto names the transport for the chain's base writer.
func (*ResponseWriter) RemoteAddr ¶
func (w *ResponseWriter) RemoteAddr() net.Addr
type Server ¶
Server implements DNS-over-QUIC server.
func (*Server) ListenAndServeQUIC ¶
func (*Server) ListenAndServeQUICWithConfig ¶ added in v1.6.0
ListenAndServeQUICWithConfig serves with a custom TLS config, binding a new UDP socket at s.Addr. Prefer Serve when the caller already holds a pre-bound socket (e.g. for SO_REUSEPORT or synchronous bind-error reporting).
Click to show internal directories.
Click to hide internal directories.