Versions in this module Expand all Collapse all v0 v0.0.1 Mar 28, 2023 Changes in this version + const DefaultShutdownTimeout + func ListenAndServe(addr string, handler http.Handler, opts ...Option) error + func ListenAndServeTLS(addr, certFile, keyFile string, handler http.Handler, opts ...Option) error + type Option interface + func WithShutdownFunc(fs ...func()) Option + func WithShutdownTimeout(timeout time.Duration) Option + type Server struct + ShutdownTimeout time.Duration + func (s *Server) ListenAndServe(opts ...Option) error + func (s *Server) ListenAndServeTLS(certFile, keyFile string, opts ...Option) error