overmindtech / discovery

Go libraries for writing SDP sources
Other
1 stars 0 forks source link

Create heartbeat mechanism #346

Closed dylanratcliffe closed 1 month ago

dylanratcliffe commented 1 month ago

As part of this design we need all sources to send heartbeats to the API so that we know what we have. This should be implemented centrally and allow the sources to decide what the health actually involves, so we'll need some kind of callback where the source can tell if it's healthy or not, for example with AWS sources they can be running but not have permission and therefore should be able to report that it's unhealthy