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-17 23:01:50 +01:00
parent c1366b010f
commit dbd4086bf9
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()
}