From 03047907f1058245894e3b35201edba8b823a5dd Mon Sep 17 00:00:00 2001 From: maze Date: Tue, 17 Mar 2026 08:35:33 +0100 Subject: [PATCH] Added StatsReceiver interface --- protocol/protocol.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocol/protocol.go b/protocol/protocol.go index 5a1d811..6aa68a6 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -35,6 +35,11 @@ type PacketReceiver interface { RawPackets() <-chan *Packet } +type StatsReceiver interface { + // Stats returns a channel that receives stats updates. + Stats() <-chan map[string]any +} + type PacketTransmitter interface { radio.Device