Full MVC of gitlab-zoekt-indexer
All threads resolved!
All threads resolved!
Compare changes
Files
4+ 111
− 75
@@ -6,7 +6,6 @@ import (
@@ -6,7 +6,6 @@ import (
@@ -19,6 +18,7 @@ import (
@@ -19,6 +18,7 @@ import (
@@ -29,6 +29,7 @@ type options struct {
@@ -29,6 +29,7 @@ type options struct {
@@ -43,11 +44,50 @@ type gitalyConnectionInfo struct {
@@ -43,11 +44,50 @@ type gitalyConnectionInfo struct {
@@ -57,6 +97,11 @@ func (s *indexServer) createIndexDir() {
@@ -57,6 +97,11 @@ func (s *indexServer) createIndexDir() {
@@ -83,12 +128,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -83,12 +128,12 @@ func (s *indexServer) handleStatus() http.HandlerFunc {
@@ -98,79 +143,76 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -98,79 +143,76 @@ func (s *indexServer) handleMetrics() http.HandlerFunc {
@@ -181,11 +223,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -181,11 +223,11 @@ func (s *indexServer) handleTruncate() http.HandlerFunc {
@@ -194,24 +236,31 @@ func (s *indexServer) respondWith(w http.ResponseWriter, r *http.Request, route
@@ -194,24 +236,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 +285,6 @@ func (s *indexServer) initMetrics() {
@@ -236,24 +285,6 @@ func (s *indexServer) initMetrics() {
@@ -273,7 +304,8 @@ func main() {
@@ -273,7 +304,8 @@ func main() {
@@ -282,11 +314,15 @@ func main() {
@@ -282,11 +314,15 @@ func main() {