Full MVC of gitlab-zoekt-indexer
All threads resolved!
All threads resolved!
Compare changes
Files
5+ 45
− 46
@@ -6,7 +6,6 @@ import (
@@ -6,7 +6,6 @@ import (
@@ -14,6 +13,7 @@ import (
@@ -14,6 +13,7 @@ import (
@@ -53,18 +53,11 @@ func (s *indexServer) createIndexDir() {
@@ -53,18 +53,11 @@ func (s *indexServer) createIndexDir() {
@@ -80,24 +73,21 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -80,24 +73,21 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -107,14 +97,18 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -107,14 +97,18 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -132,29 +126,30 @@ func (s *indexServer) serveIndex() http.HandlerFunc {
@@ -132,29 +126,30 @@ func (s *indexServer) serveIndex() http.HandlerFunc {
@@ -171,14 +166,10 @@ func (s *indexServer) indexRepository(req indexRequest) (map[string]any, error)
@@ -171,14 +166,10 @@ func (s *indexServer) indexRepository(req indexRequest) (map[string]any, error)
@@ -189,24 +180,32 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -189,24 +180,32 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -286,11 +285,11 @@ func main() {
@@ -286,11 +285,11 @@ func main() {