Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatchDog ¶
type WatchDog struct {
// contains filtered or unexported fields
}
WatchDog is an interface to the systemd watchdog mechanism
func (*WatchDog) GetChecksDuration ¶
GetChecksDuration returns the ideal time for a client to perform (active or passive collect) checks. Is is equal at 1/3 of watchdogInterval
func (*WatchDog) GetLimitDuration ¶
GetLimitDuration returns the systemd watchdog limit provided by systemd
func (*WatchDog) NewTicker ¶
NewTicker initializes and returns a ticker set at watchdogChecks (which is set at 1/3 of watchdogInterval). It can be used by clients to trigger checks before using SendHeartbeat().
func (*WatchDog) SendHeartbeat ¶
SendHeartbeat sends a keepalive notification to systemd watchdog
Click to show internal directories.
Click to hide internal directories.