We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135e1a6 commit cc6ea8eCopy full SHA for cc6ea8e
cmd/go-graphkb/main.go
@@ -6,6 +6,8 @@ import (
6
"strings"
7
"time"
8
9
+ _ "net/http/pprof"
10
+
11
"github.com/clems4ever/go-graphkb/internal/database"
12
"github.com/clems4ever/go-graphkb/internal/knowledge"
13
"github.com/clems4ever/go-graphkb/internal/server"
internal/server/server.go
@@ -204,6 +204,7 @@ func StartServer(listenInterface string,
204
flushDatabaseHandler = AuthMiddleware(flushDatabaseHandler)
205
}
206
207
+ r.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux)
208
r.HandleFunc("/api/sources", listSourcesHandler).Methods("GET")
209
r.HandleFunc("/api/schema", getSourceGraphHandler).Methods("GET")
210
r.HandleFunc("/api/database", getDatabaseDetailsHandler).Methods("GET")
0 commit comments