Versions in this module Expand all Collapse all v0 v0.0.13 Apr 13, 2024 v0.0.12 Mar 9, 2024 Changes in this version + type IHttpServer interface + GetPort func() int + HandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + OnReady func(cb func()) + type Option struct + Debug bool + Host string + KeepAliveSeconds int + MaxPort int + MinPort int + TimeoutSeconds int + UncheckedPath []string + WhiteList []string + type Server struct + func (ss *Server) Construct(opt *option.Option[*Option], logger *logging.Logger[Server]) + func (ss *Server) GetPort() int + func (ss *Server) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) + func (ss *Server) HandleFuncMethod(pattern string, method string, ...) + func (ss *Server) OnReady(callback func()) + func (ss *Server) Start(ctx context.Context, wg *sync.TimeoutWaitGroup) + func (ss *Server) Stop(ctx context.Context, wg *sync.TimeoutWaitGroup)