How girorme/cerebro-ergo-example works
The repository contains two cooperating actor-based Go services: Cerebro provides coordination and network-facing processes, while nmapit provides a supervised worker pool. The visible nmapit path is application startup → supervisor → pool → workers; Cerebro startup also registers a pipe intended to communicate with nmapit. Cerebro’s API, pipe, supervisor, and results watcher are represented as distinct components, but their internal connections are unclear in the available excerpts. The README supplied no usable capability details, so uncertain cross-service behavior is marked unverified or omitted.
Main entry points: cmd/main.go Cerebro startup · pipe.go Service pipe · cmd/main.go Nmapit startup · pool.go Worker pool
Components 17
Cerebro service
- Cerebro startup
cerebro/cmd/main.go - Cerebro app
cerebro/apps/app/app.go - Cerebro supervisor
cerebro/apps/app/sup.go - HTTP worker
cerebro/apps/app/api_worker.go - API handlers
cerebro/apps/app/api.go - TCP receiver
cerebro/apps/app/tcpreceiver.go - Service pipe
cerebro/apps/app/pipe.go - Results watcher
cerebro/apps/app/resultswatcher.go - Scan request type
cerebro/types/types.go
Nmapit service
- Nmapit startup
nmapit/cmd/main.go - Nmapit app
nmapit/apps/app/app.go - Nmapit supervisor
nmapit/apps/app/sup.go - Maestro
nmapit/apps/app/maestro.go - Worker pool
nmapit/apps/app/pool.go - Scan worker
nmapit/apps/app/pool_worker.go
Other components
- Operator
- TCP client
Connections 8
- Cerebro startup → Cerebro app: starts app
cerebro/cmd/main.go - Cerebro startup → Service pipe: registers pipe
cerebro/cmd/main.go - Operator → HTTP worker: sends HTTP
- TCP client → TCP receiver: opens connection
cerebro/apps/app/tcpreceiver.go - Nmapit startup → Nmapit app: starts app
nmapit/cmd/main.go - Nmapit supervisor → Worker pool: supervises
nmapit/apps/app/sup.go - Worker pool → Scan worker: spawns workers
nmapit/apps/app/pool.go - Service pipe → Nmapit startup: communicates with