Documentation
¶
Overview ¶
Package extheartbeat provides a small watchdog that signals when heartbeats stop arriving within a timeout. It is used by the action- and preflight-kit SDKs to detect a stalled controlling platform; both previously carried their own identical copy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func Notify ¶
Notify starts a monitor: it forwards a single value on ch (then closes ch) if no heartbeat is recorded within timeout, and closes ch when the monitor is stopped.
func (*Monitor) RecordHeartbeat ¶
func (h *Monitor) RecordHeartbeat()
Click to show internal directories.
Click to hide internal directories.