Skip to content

Commit

Permalink
add doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed May 18, 2021
1 parent 76636d5 commit 6b071c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions component/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b071c2

Please sign in to comment.