f-21: refacto: move dispatcher to agent specific files

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-04-23 22:38:20 +02:00
commit 19434b1848
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
9 changed files with 6 additions and 8 deletions

View file

@ -7,7 +7,7 @@ import (
agentapi "git.g3e.fr/syonad/two/internal/api/agent" agentapi "git.g3e.fr/syonad/two/internal/api/agent"
configuration "git.g3e.fr/syonad/two/internal/config/agent" configuration "git.g3e.fr/syonad/two/internal/config/agent"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
agentmetrics "git.g3e.fr/syonad/two/internal/prometheus/agent" agentmetrics "git.g3e.fr/syonad/two/internal/prometheus/agent"
"git.g3e.fr/syonad/two/pkg/db/kv" "git.g3e.fr/syonad/two/pkg/db/kv"
promserver "git.g3e.fr/syonad/two/pkg/prometheus" promserver "git.g3e.fr/syonad/two/pkg/prometheus"

View file

@ -4,7 +4,7 @@ import (
"log" "log"
"net/http" "net/http"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
"github.com/dgraph-io/badger/v4" "github.com/dgraph-io/badger/v4"
) )

View file

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
"git.g3e.fr/syonad/two/pkg/db/kv" "git.g3e.fr/syonad/two/pkg/db/kv"
) )
@ -66,4 +66,3 @@ func (s *Server) deleteSubnet(w http.ResponseWriter, r *http.Request, name strin
w.WriteHeader(http.StatusAccepted) w.WriteHeader(http.StatusAccepted)
json.NewEncoder(w).Encode(Subnet{Name: name, State: "deleting"}) json.NewEncoder(w).Encode(Subnet{Name: name, State: "deleting"})
} }

View file

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
"git.g3e.fr/syonad/two/pkg/db/kv" "git.g3e.fr/syonad/two/pkg/db/kv"
) )

View file

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
"git.g3e.fr/syonad/two/pkg/db/kv" "git.g3e.fr/syonad/two/pkg/db/kv"
) )
@ -44,4 +44,3 @@ func (s *Server) deleteVpc(w http.ResponseWriter, _ *http.Request, name string)
w.WriteHeader(http.StatusAccepted) w.WriteHeader(http.StatusAccepted)
json.NewEncoder(w).Encode(VPC{Name: name, State: "deleting"}) json.NewEncoder(w).Encode(VPC{Name: name, State: "deleting"})
} }

View file

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"git.g3e.fr/syonad/two/internal/dispatcher" dispatcher "git.g3e.fr/syonad/two/internal/dispatcher/agent"
"git.g3e.fr/syonad/two/pkg/db/kv" "git.g3e.fr/syonad/two/pkg/db/kv"
) )