myxce/src/frontend/apiserver
Rongsong Shen 5807a05cbb fix: address P0-2b review issues - build tag and actionType guard
1. Add //go:build !cgo to control_host_test.go so the stub-testing
   tests only run in non-CGO builds, matching the stub.go build
   constraint. Clean up dead nil check in SignatureCompiles test.

2. Replace two independent if-statements for actionType mapping in
   ControlHost with a map lookup + explicit guard, consistent with
   ControlQueue's ActionMap pattern. Prevents silent zero-value
   actionType if SupportedHostActions expands later.
2026-04-17 08:25:05 +00:00
..
backend fix: address P0-2b review issues - build tag and actionType guard 2026-04-17 08:25:05 +00:00
cmd remove faked builtin data 2026-04-14 12:19:33 +08:00
common Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
config Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
controllers fix: address P0-2b review issues - build tag and actionType guard 2026-04-17 08:25:05 +00:00
docs Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
middleware Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
models Add HostConfig + Cluster fields to models and update docs 2026-04-16 09:24:22 +00:00
router Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
services submit job from xcecli 2026-04-14 15:55:52 +08:00
store remove faked builtin data 2026-04-14 12:19:33 +08:00
tools/encrypt Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
utils submit job from xcecli 2026-04-14 15:55:52 +08:00
go.mod Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
go.sum Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
meson.build Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
README.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00

(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