Documentation
¶
Overview ¶
Package dnsserver implements an embeddable iroh DNS and pkarr relay server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server stores pkarr relay payloads in memory and serves them over HTTP and DNS. It is safe for concurrent use.
func (*Server) ServeDNSPacket ¶
ServeDNSPacket handles one DNS wire-format message and returns a DNS wire-format response.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles PUT and GET of pkarr relay payloads at /pkarr/<key> or /<key>.
func (*Server) ServePacketConn ¶
ServePacketConn serves DNS messages on pc until ctx is canceled or pc returns a non-close read error.