From 001e5430fdaf253c91bbd8d9175f645e4fb27950 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sun, 26 Mar 2023 16:59:47 +0400 Subject: [PATCH] Describe gauge ServeHTTP method --- middleware/httpgauge/httpgauge.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/middleware/httpgauge/httpgauge.go b/middleware/httpgauge/httpgauge.go index 25ede7b..8eec7de 100644 --- a/middleware/httpgauge/httpgauge.go +++ b/middleware/httpgauge/httpgauge.go @@ -14,6 +14,13 @@ func (g *Gauge) Snapshot() map[string]int { panic("not implemented") } +// ServeHTTP returns accumulated statistics in text format ordered by pattern. +// +// For example: +// +// /a 10 +// /b 5 +// /c/{id} 7 func (g *Gauge) ServeHTTP(w http.ResponseWriter, r *http.Request) { panic("not implemented") }