Full MVC of gitlab-zoekt-indexer
All threads resolved!
All threads resolved!
Compare changes
+ 63
− 40
@@ -6,7 +6,6 @@ import (
@@ -6,7 +6,6 @@ import (
@@ -57,6 +56,11 @@ func (s *indexServer) createIndexDir() {
@@ -57,6 +56,11 @@ func (s *indexServer) createIndexDir() {
@@ -83,12 +87,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -83,12 +87,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -98,14 +102,22 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -98,14 +102,22 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -123,7 +135,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -123,7 +135,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -135,11 +147,11 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -135,11 +147,11 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -171,6 +183,29 @@ func (s *indexServer) indexRepository(req indexRequest) error {
@@ -171,6 +183,29 @@ func (s *indexServer) indexRepository(req indexRequest) error {
@@ -181,11 +216,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -181,11 +216,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -200,18 +235,24 @@ func (s *indexServer) respondWith(w http.ResponseWriter, r *http.Request, route
@@ -200,18 +235,24 @@ func (s *indexServer) respondWith(w http.ResponseWriter, r *http.Request, route
func (s *indexServer) respondWithError(w http.ResponseWriter, r *http.Request, route string, err error) {
@@ -236,24 +277,6 @@ func (s *indexServer) initMetrics() {
@@ -236,24 +277,6 @@ func (s *indexServer) initMetrics() {