forked from lei.chen/myxce
- add heartbeat.go with heartbeatIntervalSecs var, SetHeartbeatInterval, runHeartbeat (no build tag, CGO-free) - add heartbeat_test.go with 5 tests covering interval validation and goroutine lifecycle - add StartHeartbeat to clib.go (CGO impl calling xcecli_heartbeat) - remove SetHeartbeatInterval stub from stub.go (now real code in heartbeat.go) - remove TestSetHeartbeatInterval_StubNoOp from stub_funcs_test.go - call SetHeartbeatInterval in OnClusterUpdated to track backend-pushed interval - call backend.StartHeartbeat in cmd/main.go after backend registration |
||
|---|---|---|
| .. | ||
| auth | ||
| clib.go | ||
| config.go | ||
| control_host_test.go | ||
| convert.go | ||
| convert_pure.go | ||
| convert_test.go | ||
| handler.go | ||
| handler_test.go | ||
| heartbeat.go | ||
| heartbeat_test.go | ||
| notification.go | ||
| stub.go | ||
| stub_funcs_test.go | ||