Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2020 Changes in this version + type DNSServer interface + Listen func() + Query func(Packet) + type DNSService struct + func New(rwDirPath, listenAddr string, sendAddr string, forwarder net.UDPAddr) DNSService + func Start(rwDirPath, listenAddr, sendAddr string, forwarder net.UDPAddr) *DNSService + func (s *DNSService) Listen() + func (s *DNSService) Query(p Packet) + type Packet struct + type RestServer interface + Create func() http.HandlerFunc + Delete func() http.HandlerFunc + Read func() http.HandlerFunc + Update func() http.HandlerFunc + type RestService struct + Dn *DNSService + func (s *RestService) Create(w http.ResponseWriter, r *http.Request) + func (s *RestService) Delete(w http.ResponseWriter, r *http.Request) + func (s *RestService) Read(w http.ResponseWriter, r *http.Request) + func (s *RestService) Update(w http.ResponseWriter, r *http.Request)