Documentation
¶
Index ¶
- Constants
- type OptionFunc
- type Server
- func (s *Server) DoHTTP(uri string, v interface{}) error
- func (s *Server) NodeQuery(name string, w d.ResponseWriter, r *d.Msg)
- func (s *Server) Run() error
- func (s *Server) ServeDNS(w d.ResponseWriter, r *d.Msg)
- func (s *Server) ServiceQueryA(name string, w d.ResponseWriter, r *d.Msg)
- func (s *Server) ServiceQuerySRV(name string, w d.ResponseWriter, r *d.Msg)
Constants ¶
View Source
const ( // DefaultEndpoint is the default URL for onedari API. DefaultEndpoint = "http://127.0.0.1:63412" // DefaultAddress is the default listen address for the DNS server. DefaultAddress = "127.0.0.1:15353" // DefaultDomain is the default DNS domain. DefaultDomain = "onedari.local." // DefaultTTL is the default DNS ttl. DefaultTTL = 0 )
View Source
const ( //DNS Query types UnknownQueryType = iota NodeQueryType ServiceQueryType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
func HTTPClient ¶
func HTTPClient(client *http.Client) OptionFunc
HTTPClient sets the http client to use.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ServeDNS ¶
func (s *Server) ServeDNS(w d.ResponseWriter, r *d.Msg)
ServeDNS implements the dns.Server interface.
func (*Server) ServiceQueryA ¶
func (*Server) ServiceQuerySRV ¶
Click to show internal directories.
Click to hide internal directories.