Versions in this module Expand all Collapse all v0 v0.2.1 Sep 26, 2021 v0.2.0 Sep 25, 2021 Changes in this version type Server + func (s *Server) Shutdown() error v0.1.1 Sep 25, 2021 v0.1.0 Sep 25, 2021 Changes in this version + func SplitHostPort(addr string) (host string, port int, err error) + type Server struct + CleanupTimeout time.Duration + EnabledListeners []string + Host string + KeepAlive time.Duration + Logger func(string, ...interface{}) + MaxHeaderSize int + Port int + ReadTimeout time.Duration + SocketPath string + WriteTimeout time.Duration + func NewServer(handler http.Handler, host string, port int) *Server + func (s *Server) Fatalf(f string, args ...interface{}) + func (s *Server) GetHandler() http.Handler + func (s *Server) HTTPListener() (net.Listener, error) + func (s *Server) Listen() error + func (s *Server) Logf(f string, args ...interface{}) + func (s *Server) Serve() (err error) + func (s *Server) SetHandler(handler http.Handler)