fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Add / route for healthcheck in zoekt-dynamic-indexserver (#532)

author
Dylan
committer
GitHub
date (Feb 13, 2023, 11:42 AM +0200) commit b8a8461a parent 24406ae7
+5
+5
cmd/zoekt-dynamic-indexserver/main.go
··· 128 128 opts Options 129 129 } 130 130 131 + func (s *indexServer) serveHealthCheck(w http.ResponseWriter, r *http.Request) { 132 + // Nothing to do. Just return 200 133 + } 134 + 131 135 func (s *indexServer) serveIndex(w http.ResponseWriter, r *http.Request) { 132 136 dec := json.NewDecoder(r.Body) 133 137 dec.DisallowUnknownFields() ··· 190 194 } 191 195 192 196 func (s *indexServer) startIndexingApi() { 197 + http.HandleFunc("/", s.serveHealthCheck) 193 198 http.HandleFunc("/index", s.serveIndex) 194 199 http.HandleFunc("/truncate", s.serveTruncate) 195 200