feat(backend): add in-memory collect job manager and mock executor

This commit is contained in:
Mikhail Chusavitin committed 2026-02-04 10:01:51 +03:00
1 parent aa3c82d9ba
commit d38d0c9d30
7 files changed
+555 -47

No files matched your search

+4 -5
View File
@@ -29,15 +29,14 @@ type Server struct {
result *models.AnalysisResult
detectedVendor string
collectMu sync.RWMutex
collectJobs map[string]*CollectJobStatusResponse
jobManager *JobManager
}
func New(cfg Config) *Server {
s := &Server{
config: cfg,
mux: http.NewServeMux(),
collectJobs: make(map[string]*CollectJobStatusResponse),
config: cfg,
mux: http.NewServeMux(),
jobManager: NewJobManager(),
}
s.setupRoutes()
return s