How echoping07/downonly works
DownOnly is a lightweight traffic-management service with a browser-based control panel. Its main workflow is to accept configuration from the WebUI, schedule and select public download sources, transfer data without writing it to disk, and expose status and historical traffic/log data. The README documents scheduling, source testing and recovery, security controls, auditing, and persistence; the sampled Go excerpts show initialization, configuration loading, download-loop behavior, and HTTP handlers. Most behavior is implemented in main.go, so several distinct responsibilities share that path.
Main entry points: main.go HTTP API · index.html WebUI · priority_linux.go Process Priority
Components 15
Control and Scheduling
- App Initialization
main.go - Configuration
main.go - Schedule and Quota
main.go - Source Selection
main.go - Process Priority
priority_linux.go
Download and Safety
- Download Worker
main.go - URL Safety Checks
main.go - Discarded Data
main.go
Audit and Persistence
- Live Monitoring
main.go - Traffic History
main.go - Daily Logs
main.go
Other components
- Browser User
- Download Sources
Connections 19
- Browser User → WebUI: opens
README.md - WebUI → HTTP API: calls
README.md - HTTP API → Configuration: reads and updates
README.md - HTTP API → Live Monitoring: returns status
README.md - HTTP API → Traffic History: returns history
README.md - HTTP API → Daily Logs: returns entries
README.md - HTTP API → URL Safety Checks: tests URLs
README.md - HTTP API → Source Selection: restores source
README.md - App Initialization → Configuration: loads and saves
main.go - App Initialization → Schedule and Quota: restores running state
README.md - Schedule and Quota → Source Selection: selects sources
README.md - Schedule and Quota → Download Worker: starts downloads
README.md - Download Worker → URL Safety Checks: validates URL
main.go - Download Worker → Download Sources: downloads from
README.md - Download Worker → Discarded Data: discards bytes
README.md - Download Worker → Live Monitoring: records rate
README.md - Live Monitoring → Traffic History: updates totals
README.md - Live Monitoring → Daily Logs: records events
README.md - App Initialization → Process Priority: sets low priority
main.go