Documentation

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 type

    func New

    func New(cfg *config.Config) *Server

      New return new server

      func (*Server) ListenAndServeDNS

      func (s *Server) ListenAndServeDNS(network string)

        ListenAndServeDNS Starts a server on address and network specified Invoke handler for incoming queries.

        func (*Server) ListenAndServeDNSTLS

        func (s *Server) ListenAndServeDNSTLS()

          ListenAndServeDNSTLS acts like http.ListenAndServeTLS

          func (*Server) ListenAndServeHTTPTLS

          func (s *Server) ListenAndServeHTTPTLS()

            ListenAndServeHTTPTLS acts like http.ListenAndServeTLS

            func (*Server) Run

            func (s *Server) Run()

              Run listen the services

              func (*Server) ServeDNS

              func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

                ServeDNS implements the Handle interface.

                func (*Server) ServeHTTP

                func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

                Source Files

                Directories

                Path Synopsis