use common controller interface in KCM.

This commit is contained in:
Jiahui Feng
2021-08-20 14:54:32 -07:00
parent cd80d70c3d
commit 8f5771d243
13 changed files with 87 additions and 69 deletions

View File

@@ -281,3 +281,7 @@ func (h *debugHTTPHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
w.Write(data)
w.WriteHeader(http.StatusOK)
}
func (gc *GarbageCollector) DebuggingHandler() http.Handler {
return NewDebugHandler(gc)
}