fetch_ml/internal/api/ws
Jeremie Fraeys 3694d4e56f
refactor: extract ws handlers to separate files to reduce handler.go size
- Extract job handlers (handleQueueJob, handleQueueJobWithSnapshot, handleCancelJob, handlePrune) to ws/jobs.go (209 lines)
- Extract validation handler (handleValidateRequest) to ws/validate.go (167 lines)
- Reduce ws/handler.go from 879 to 474 lines (under 500 line target)
- Keep core framework in handler.go: Handler struct, dispatch, packet sending, auth helpers
- All handlers remain as methods on Handler for backward compatibility

Result: handler.go 474 lines, jobs.go 209 lines, validate.go 167 lines
2026-02-17 20:38:03 -05:00
..
handler.go refactor: extract ws handlers to separate files to reduce handler.go size 2026-02-17 20:38:03 -05:00
jobs.go refactor: extract ws handlers to separate files to reduce handler.go size 2026-02-17 20:38:03 -05:00
validate.go refactor: extract ws handlers to separate files to reduce handler.go size 2026-02-17 20:38:03 -05:00