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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user