Documentation
¶
Index ¶
- type NewServerFunc
- type Server
- func (s *Server) OnHealthCheck(ctx context.Context, w dns.ResponseWriter, request *dns.Msg)
- func (s *Server) OnRequest(ctx context.Context, w dns.ResponseWriter, msg *dns.Msg)
- func (s *Server) Query(ctx context.Context, serverHost string, clientIP net.IP, question string, ...) (*model.Response, error)
- func (s *Server) Start(ctx context.Context, errCh chan<- error)
- func (s *Server) Stop(ctx context.Context) error
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 controls the endpoints for DNS and HTTP
func (*Server) OnHealthCheck ¶
OnHealthCheck Handler for docker health check. Just returns OK code without delegating to resolver chain
Click to show internal directories.
Click to hide internal directories.