MCPcopy Create free account
hub / github.com/couchbase/cbft / ServeHTTP

Method ServeHTTP

http/index_list.go:22–32  ·  view source on GitHub ↗
(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

20}
21
22func (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}

Callers

nothing calls this directly

Calls 2

IndexNamesFunction · 0.85
mustEncodeFunction · 0.70

Tested by

no test coverage detected