mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 18:30:02 +08:00
fix golint issues in rest (#529)
This commit is contained in:
@@ -31,7 +31,8 @@ var (
|
||||
})
|
||||
)
|
||||
|
||||
func PromethousHandler(path string) func(http.Handler) http.Handler {
|
||||
// PrometheusHandler returns a middleware that reports stats to prometheus.
|
||||
func PrometheusHandler(path string) func(http.Handler) http.Handler {
|
||||
return func(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
startTime := timex.Now()
|
||||
|
||||
Reference in New Issue
Block a user