(w http.ResponseWriter, message string)
| 26 | ) |
| 27 | |
| 28 | func writeMessage(w http.ResponseWriter, message string) { |
| 29 | w.WriteHeader(http.StatusOK) |
| 30 | err := compactorStatusPageTemplate.Execute(w, struct { |
| 31 | Message string |
| 32 | }{Message: message}) |
| 33 | |
| 34 | if err != nil { |
| 35 | level.Error(util_log.Logger).Log("msg", "unable to serve compactor ring page", "err", err) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (c *Compactor) RingHandler(w http.ResponseWriter, req *http.Request) { |
| 40 | if !c.compactorCfg.ShardingEnabled { |
no test coverage detected