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

Method RegisterStoreGateway

pkg/api/api.go:415–420  ·  view source on GitHub ↗

RegisterStoreGateway registers the ring UI page associated with the store-gateway.

(s *storegateway.StoreGateway)

Source from the content-addressed store, hash-verified

413
414// RegisterStoreGateway registers the ring UI page associated with the store-gateway.
415func (a *API) RegisterStoreGateway(s *storegateway.StoreGateway) {
416 storegatewaypb.RegisterStoreGatewayServer(a.server.GRPC, s)
417
418 a.indexPage.AddLink(SectionAdminEndpoints, "/store-gateway/ring", "Store Gateway Ring")
419 a.RegisterRoute("/store-gateway/ring", http.HandlerFunc(s.RingHandler), false, "GET", "POST")
420}
421
422// RegisterCompactor registers the ring UI page associated with the compactor.
423func (a *API) RegisterCompactor(c *compactor.Compactor) {

Callers 1

initStoreGatewayMethod · 0.80

Calls 3

RegisterRouteMethod · 0.95
AddLinkMethod · 0.80

Tested by

no test coverage detected