How saikiransangam/shakedown works
Shakedown is a CLI load-testing and reliability-diagnosis tool, with a built-in fault-injecting API. Its run path configures an HTTP probe, drives concurrent or rate-limited requests, aggregates classified outcomes and timing, then prints a report with trend views and diagnostic findings. The graph also includes the separate mock-server workflow. Major edges are evidenced by the shown CLI calls, imports, and README workflow; unsampled implementation details are represented only where documented.
Main entry points: http.go HTTP probe · run.go Run options · mock.go Mock options · cli.go Command dispatch
Components 17
CLI workflows
- Command entry
cmd/shakedown/main.go - Command dispatch
internal/cli/cli.go - Run options
internal/cli/run.go - Mock options
internal/cli/mock.go
Request execution
- Load driver
load/runner.go - HTTP probe
probe/http.go
Measurement
- Outcome taxonomy
metrics/outcome.go - Result collector
metrics/collector.go - Exact distributions
metrics/distribution.go - Request result
metrics/result.go
Analysis and output
- Text report
internal/report/text.go - Report formatting
internal/report/format.go - Run diagnosis
internal/report/diagnose.go
Fault API
- Fault profiles
mockapi/server.go - Mock HTTP server
mockapi/server.go
Other components
- CLI user
- Test target API
Connections 20
- CLI user → Command entry: runs command
cmd/shakedown/main.go - Command entry → Command dispatch: dispatches
cmd/shakedown/main.go - Command dispatch → Run options: runs
- Command dispatch → Mock options: runs
- Run options → HTTP probe: configures
internal/cli/run.go - Run options → Load driver: starts
internal/cli/run.go - Load driver → HTTP probe: invokes
load/runner.go - HTTP probe → Test target API: sends requests
probe/http.go - HTTP probe → Outcome taxonomy: classifies
probe/http.go - HTTP probe → Request result: produces
probe/http.go - Load driver → Result collector: collects results
load/runner.go - Result collector → Exact distributions: computes
metrics/collector.go - Result collector → Request result: aggregates
metrics/collector.go - Run options → Text report: renders summary
internal/cli/run.go - Text report → Run diagnosis: requests findings
internal/report/text.go - Text report → Report formatting: formats output
internal/report/text.go - CLI user → Mock options: starts mock
README.md - Mock options → Fault profiles: selects profile
internal/cli/mock.go - Mock options → Mock HTTP server: starts server
internal/cli/mock.go - Mock HTTP server → Test target API: serves API