This commit is contained in:
Zheng Kai
2023-03-31 10:12:18 +08:00
parent af429a393a
commit 8e72c62281
17 changed files with 229 additions and 61 deletions

View File

@@ -6,6 +6,8 @@ import (
"project/core"
"project/zj"
"time"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
// Server ...
@@ -13,6 +15,7 @@ func Server() {
mux := http.NewServeMux()
mux.Handle(`/_metrics`, promhttp.Handler())
mux.HandleFunc(`/`, core.NewCore().WebHandle)
s := &http.Server{