Add metrics collector for HTTP status codes

This commit is contained in:
Ingo Oppermann
2023-09-29 17:18:59 +02:00
parent 40495e5ef0
commit 5b81e6e23f
5 changed files with 98 additions and 6 deletions

8
http/server/server.go Normal file
View File

@@ -0,0 +1,8 @@
package server
import "net/http"
type Server interface {
ServeHTTP(w http.ResponseWriter, r *http.Request)
HTTPStatus() map[int]uint64
}