feat(backend): add in-memory collect job manager and mock executor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user