mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 20:58:00 +00:00
Long-running server exposes GET / (client IP) and GET /check?ip= for ad-hoc lookups. signal.NotifyContext drives graceful shutdown; the shared dataset.Group.Tick goroutine refreshes inbound/outbound views in the background so the refresh path gets real exercise. Factored the shared populate+report logic into a Checker struct so oneshot and serve modes use the same code path.