Full MVC of gitlab-zoekt-indexer
All threads resolved!
All threads resolved!
Compare changes
Files
2+ 71
− 42
@@ -6,7 +6,6 @@ import (
@@ -6,7 +6,6 @@ import (
@@ -19,6 +18,7 @@ import (
@@ -19,6 +18,7 @@ import (
@@ -57,6 +57,11 @@ func (s *indexServer) createIndexDir() {
@@ -57,6 +57,11 @@ func (s *indexServer) createIndexDir() {
@@ -83,12 +88,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -83,12 +88,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -98,14 +103,22 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -98,14 +103,22 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -123,7 +136,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -123,7 +136,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -135,11 +148,11 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -135,11 +148,11 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -171,6 +184,29 @@ func (s *indexServer) indexRepository(req indexRequest) error {
@@ -171,6 +184,29 @@ func (s *indexServer) indexRepository(req indexRequest) error {
@@ -181,11 +217,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -181,11 +217,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -194,24 +230,31 @@ func (s *indexServer) respondWith(w http.ResponseWriter, r *http.Request, route
@@ -194,24 +230,31 @@ 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 +279,6 @@ func (s *indexServer) initMetrics() {
@@ -236,24 +279,6 @@ func (s *indexServer) initMetrics() {
@@ -282,11 +307,15 @@ func main() {
@@ -282,11 +307,15 @@ func main() {