feat: add node stale/delete config

closes: #93
This commit is contained in:
Enot (ded) Skelly
2026-07-24 13:09:51 -07:00
parent 3f2506fc8b
commit 99d7eb0bab
17 changed files with 332 additions and 22 deletions
+5
View File
@@ -48,6 +48,11 @@ type NodeSummary struct {
DefaultScope *string `json:"defaultScope,omitempty"` // most recently matched transport scope name e.g. "#bc"
KnownNeighborCount int64 `json:"knownNeighborCount"`
NeighborIDs []uuid.UUID `json:"neighborIds,omitempty"` // only populated when the list request opts in; see ?neighbors=true
// Stale is true when the node hasn't been seen (last_seen) within the configured
// staleness window (default 24h; internal/config.ResolvedConfig.NodeStaleThreshold).
// Applies to every node type, unlike ClockDriftSeconds/ClockOutOfSync on Node, which
// are repeater/room-server only.
Stale bool `json:"stale"`
}
// Node is the full node representation including firmware capability flags,