prow/cmd/jenkins-operator/main.go
func serve(jc *jenkins.Client) {
	http.Handle("/", gziphandler.GzipHandler(handleLog(jc)))
	http.Handle("/metrics", promhttp.Handler())
	logrus.WithError(http.ListenAndServe(":8080", nil)).Fatal("ListenAndServe returned.")
}
func serve(jc *jenkins.Client) {
	http.Handle("/", gziphandler.GzipHandler(handleLog(jc)))
	http.Handle("/metrics", promhttp.Handler())
	logrus.WithError(http.ListenAndServe(":8080", nil)).Fatal("ListenAndServe returned.")
}
func serve ( jc * jenkins . Client ) { http . Handle ( " " , gziphandler . GzipHandler ( handleLog ( jc ) ) ) http . Handle ( " " , promhttp . Handler ( ) ) logrus . WithError ( http . ListenAndServe ( " " , nil ) ) . Fatal ( " " ) }
// serve starts a http server and serves Jenkins logs
// and prometheus metrics. Meant to be called inside
// a goroutine.
serve starts a http server and serves Jenkins logs and prometheus metrics . Meant to be called inside a goroutine .