MCPcopy Index your code
hub / github.com/cortexproject/cortex / RegisterServiceMapHandler

Method RegisterServiceMapHandler

pkg/api/api.go:505–508  ·  view source on GitHub ↗

RegisterServiceMapHandler registers the Cortex structs service handler TODO: Refactor this code to be accomplished using the services.ServiceManager or a future module manager #2291

(handler http.Handler)

Source from the content-addressed store, hash-verified

503// TODO: Refactor this code to be accomplished using the services.ServiceManager
504// or a future module manager #2291
505func (a *API) RegisterServiceMapHandler(handler http.Handler) {
506 a.indexPage.AddLink(SectionAdminEndpoints, "/services", "Service Status")
507 a.RegisterRoute("/services", handler, false, "GET")
508}
509
510func (a *API) RegisterMemberlistKV(handler http.Handler) {
511 a.indexPage.AddLink(SectionAdminEndpoints, "/memberlist", "Memberlist Status")

Callers 1

RunMethod · 0.80

Calls 2

RegisterRouteMethod · 0.95
AddLinkMethod · 0.80

Tested by

no test coverage detected