Documentation ¶
Index ¶
- func GlobalMiddleware(scheme string, next http.Handler) http.Handler
- func NewRouter() *router
- func NotFoundHandler(w http.ResponseWriter, r *http.Request) *appError
- type PortResponse
- type Response
- type Server
- func (s *Server) CLICityHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) CLICountryHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) CLICountryISOHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) CLIHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) Handler() http.Handler
- func (s *Server) JSONHandler(w http.ResponseWriter, r *http.Request) *appError
- func (s *Server) ListenAndServe(addr string, sslAddr string, ssl map[string]string) chan error
- func (s *Server) PortHandler(w http.ResponseWriter, r *http.Request) *appError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request) *appError
Types ¶
type PortResponse ¶
type Server ¶
type Server struct { Template string IPHeader string LookupAddr func(net.IP) (string, error) LookupPort func(net.IP, uint64) error TLS map[string]string // contains filtered or unexported fields }
func (*Server) CLICityHandler ¶
func (s *Server) CLICityHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) CLICountryHandler ¶
func (s *Server) CLICountryHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) CLICountryISOHandler ¶
func (s *Server) CLICountryISOHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) CLIHandler ¶
func (s *Server) CLIHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) DefaultHandler ¶
func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) JSONHandler ¶
func (s *Server) JSONHandler(w http.ResponseWriter, r *http.Request) *appError
func (*Server) ListenAndServe ¶
func (*Server) PortHandler ¶
func (s *Server) PortHandler(w http.ResponseWriter, r *http.Request) *appError
Click to show internal directories.
Click to hide internal directories.