Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent easyns agent
func (*Agent) DefaultSel ¶
DefaultSel default selector from config
type DNSServer ¶
DNSServer is used to wrap an Agent and expose various service discovery endpoints using a DNS interface.
func NewDNSServer ¶
NewDNSServer new dns server
func (*DNSServer) ListenAndServe ¶
ListenAndServe listen and serve dns
type HTTPServer ¶
HTTPServer provides an HTTP api for an agent.
func NewHTTPServer ¶
func NewHTTPServer(addr string, a *Agent) *HTTPServer
NewHTTPServer http server provide simple query api
func (*HTTPServer) NSTranslation ¶
func (s *HTTPServer) NSTranslation(resp http.ResponseWriter, req *http.Request) (interface{}, error)
NSTranslation query name from http api
Click to show internal directories.
Click to hide internal directories.