Provider loop discovery almost finished

Provider lookup will lookup on startup, do the healthcheck until the
stream starts and also restart on stream closure or provider stall
This commit is contained in:
2026-09-12 23:28:15 +01:00
parent 196e1d8916
commit 528c62288a
8 changed files with 114 additions and 19 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
// Package telemetry is our interface with our data sources
package telemetry
import "time"
type TelemetryProvider interface {
StopStream()
Stream() (<-chan TelemetryData, error)
Subscribe(map[int16]FieldID)
Stalled() bool // Return true if no fresh data is coming
IsAlive(time.Duration) bool
Close()
}