modelJobToSubmit/freeJobSubmit (submit direction) and cJobToModel/cJobArrayToModels (receive direction, both single-job and array-job paths) now carry from_host across the CGO boundary. rawSubmitData/rawJobToModel (the pure-Go, CGO-free mapping layer) gain the field too, completing the round-trip so JobInfo.FromHost reflects whatever the controller actually has -- which, as of the prior two commits, is now always the client-asserted hostname. backend/handler.go needs no change: its existing blind overwrite in OnJobUpdated is correct by construction once every controller push genuinely carries the right value. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AgYRU3zDTqNGV5Jk8aiKLg |
||
|---|---|---|
| .. | ||
| backend | ||
| cmd | ||
| common | ||
| config | ||
| controllers | ||
| docs | ||
| middleware | ||
| models | ||
| router | ||
| services | ||
| store | ||
| tools/encrypt | ||
| utils | ||
| go.mod | ||
| go.sum | ||
| meson.build | ||
| README.md | ||
(1) run server command:
cd cmd go run main.go
(2) run server with different log level: cd cmd go run main.go -level=debug
level options: info/debug/warn/error/fatal