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

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

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