How gyyyy/zoomeye-go works
ZoomEye-go is both a Go SDK and a CLI for authenticating to ZoomEye and searching host/web assets, inspecting account resources and device history, and analyzing or exporting results. The main CLI workflow runs through command handlers and ZoomEyeAgent, which manages credentials, caching, local data, and API calls; result analysis and presentation follow. The README also documents local-file loading and multi-page SDK searches. Some command and agent implementations were sampled only in excerpts, so links for documented capabilities are shown only where their entry points are supported.
Main entry points: agent.go Agent workflow · cmd.go Command handlers · zoomeye.go HTTP requests · result.go Filter and statistics
Components 20
CLI
- Command dispatch
main.go - Command handlers
cmd.go
Agent and local data
- Agent workflow
agent.go - Configuration
agent.go - File operations
file.go - Credentials
agent.go - Search cache
agent.go - Local data files
agent.go - Load local results
agent.go
ZoomEye SDK
- SDK client
zoomeye/zoomeye.go - HTTP requests
zoomeye/zoomeye.go - Login and resources
zoomeye/zoomeye.go - Host/web search
zoomeye/zoomeye.go - Multi-page search
zoomeye/zoomeye.go - IP history
zoomeye/zoomeye.go
Results and presentation
- Result models
zoomeye/result.go - Filter and statistics
zoomeye/result.go - Display and charts
print.go
Other components
- CLI user
- ZoomEye API
Connections 28
- CLI user → Command dispatch: runs command
- Command dispatch → Command handlers: dispatches
- Command handlers → Agent workflow: invokes workflow
- Agent workflow → Configuration: loads settings
- Configuration → File operations: reads config
- Agent workflow → Credentials: reads/writes
- Agent workflow → Search cache: reads/writes
- Agent workflow → Local data files: loads/saves
- Agent workflow → File operations: uses file helpers
- Agent workflow → SDK client: calls API client
- SDK client → Login and resources: performs auth/info
- SDK client → Host/web search: runs search
- SDK client → Multi-page search: runs pages
- Multi-page search → Host/web search: requests pages
- SDK client → IP history: queries IP history
- Login and resources → HTTP requests: sends requests
- Host/web search → HTTP requests: sends requests
- IP history → HTTP requests: sends requests
- HTTP requests → ZoomEye API: sends API calls
- ZoomEye API → HTTP requests: returns responses
- HTTP requests → Result models: decodes responses
- Command handlers → Load local results: loads file data
- Load local results → File operations: reads JSON
- Command handlers → Filter and statistics: analyzes results
- Command handlers → Display and charts: renders output
- Filter and statistics → Display and charts: provides summaries
- Result models → Filter and statistics: supports operations
- Command handlers → Local data files: saves exports