Full MVC of gitlab-zoekt-indexer
All threads resolved!
All threads resolved!
Compare changes
Files
4+ 64
− 53
@@ -18,6 +18,7 @@ import (
@@ -18,6 +18,7 @@ import (
@@ -42,11 +43,36 @@ type gitalyConnectionInfo struct {
@@ -42,11 +43,36 @@ type gitalyConnectionInfo struct {
@@ -141,7 +167,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -141,7 +167,7 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -155,37 +181,29 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -155,37 +181,29 @@ func (s *indexServer) handleIndex() http.HandlerFunc {
@@ -211,24 +229,31 @@ func (s *indexServer) respondWith(w http.ResponseWriter, r *http.Request, route
@@ -211,24 +229,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) {
@@ -253,24 +278,6 @@ func (s *indexServer) initMetrics() {
@@ -253,24 +278,6 @@ func (s *indexServer) initMetrics() {
@@ -299,11 +306,15 @@ func main() {
@@ -299,11 +306,15 @@ func main() {