Versions in this module Expand all Collapse all v1 v1.0.5 Aug 21, 2023 Changes in this version + var OKDoneErr = errors.New("route done") + var OKNotDoneErr = errors.New("not done") + type FailableHandler func(w http.ResponseWriter, r *http.Request) error + type Route struct + DoneHandlerFunc http.HandlerFunc + HandlerFunc FailableHandler + MaxOK int64 + MaxRequests int64 + Methods []string + Pattern string + func (r *Route) OkCount() int64 + func (r *Route) RequestCount() int64 + type Server struct + CertFile string + Done chan map[*Route]error + ErrorLog *log.Logger + Host string + HostAddresses []string + InfoLog *log.Logger + KeyFile string + Port string + func NewServer() *Server + func (s *Server) AddRoute(route *Route) + func (s *Server) Close() error + func (s *Server) HandleIcon(w http.ResponseWriter, r *http.Request) + func (s *Server) Serve() error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Shutdown(ctx context.Context) error