(w http.ResponseWriter, req *http.Request)
| 20 | } |
| 21 | |
| 22 | func (h *ListIndexesHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 23 | indexNames := IndexNames() |
| 24 | rv := struct { |
| 25 | Status string `json:"status"` |
| 26 | Indexes []string `json:"indexes"` |
| 27 | }{ |
| 28 | Status: "ok", |
| 29 | Indexes: indexNames, |
| 30 | } |
| 31 | mustEncode(w, rv) |
| 32 | } |
nothing calls this directly
no test coverage detected