RegisterStoreGateway registers the ring UI page associated with the store-gateway.
(s *storegateway.StoreGateway)
| 413 | |
| 414 | // RegisterStoreGateway registers the ring UI page associated with the store-gateway. |
| 415 | func (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. |
| 423 | func (a *API) RegisterCompactor(c *compactor.Compactor) { |
no test coverage detected