feat(backend): add in-memory collect job manager and mock executor
This commit is contained in:
1 parent
aa3c82d9ba
commit
d38d0c9d30
7 files changed
+555
-47
No files matched your search
@@ -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