Files
Nexus-Guard-Suite/.sisyphus/evidence/task-2-done.txt
T
datadunia 075f915a66
NexusGuard CI / server-core-test (push) Failing after 47s
NexusGuard CI / device-agent-test (push) Failing after 35s
NexusGuard CI / dashboard-ui-build (push) Failing after 31s
chore: archive old plans, add new plan docs, update submodules
2026-05-28 02:50:43 +07:00

12 lines
624 B
Plaintext

Task 2: Add GetPeerHandshakes() method to WgManager interface + impl + stub
Changes:
1. manager.go: Added PeerHandshake struct (PublicKey, LastHandshakeTime, RxBytes, TxBytes) + GetPeerHandshakes() ([]PeerHandshake, error) to WgManager interface
2. wgmanager_linux.go: Implemented on LinuxWgManager — opens wgctrl, reads device peers, returns []PeerHandshake. Uses mu.Lock/Unlock. Returns nil, nil on error.
3. wgmanager_stub.go: Implemented on StubWgManager — returns nil, nil
Verification:
- go build -tags dev ./... — PASSES
- go build ./... — PASSES
- lsp_diagnostics — CLEAN (1 pre-existing hint unrelated)