diff --git a/component/http_server.go b/component/http_server.go index 39e249b..0214c0c 100644 --- a/component/http_server.go +++ b/component/http_server.go @@ -14,6 +14,7 @@ type HTTPServerOptions struct { PreStop func() } +// HTTPServer is a helper which returns an xrun.ComponentFunc to start an http.Server func HTTPServer(opts HTTPServerOptions) xrun.ComponentFunc { srv := opts.Server ps := opts.PreStart