Refactor API handlers into route receivers - #324
danielgaskins wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughThe PR refactors internal API handlers into receiver methods. ChangesRoute handler receiver refactor
Suggested reviewers: Priority: ⬇️ Low Change: Refactor 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Moves shared API dependencies onto receiver structs.
serverRoutesowns the client accessor and tool-call timeout, whilehealthRoutesowns the health monitor. Handler methods now receive only request-specific inputs, and child route registration uses the same receiver.The affected tests now construct the receiver types directly.
PR Type
Relevant issues
Fixes #272
Testing
go test ./...golangci-lint run --concurrency 2Checklist
make lint,make test).AI Usage
AI Model/Tool used:
OpenAI Codex
Any additional AI details you'd like to share:
NOTE:
When responding to reviewer questions, please respond yourself rather than copy/pasting reviewer comments into an AI and pasting back its answer. We want to discuss with you, not your AI :)
Summary by CodeRabbit
Refactor
Tests