Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilAlarmScheduler = errors.New("nil alarm scheduler")
ErrNilAlarmScheduler is raised when a valid alarm scheduler is expected but nil is used
View Source
var ErrNilEndProcessChan = errors.New("nil end process chan")
ErrNilEndProcessChan is raised when a valid end process chan is expected but nil is used
Functions ¶
func NewWatchdog ¶
func NewWatchdog( alarmScheduler core.TimersScheduler, chanStopNodeProcess chan endProcess.ArgEndProcess, log core.Logger, ) (core.WatchdogTimer, error)
NewWatchdog creates a new instance of WatchdogTimer
Types ¶
type DisabledWatchdog ¶
type DisabledWatchdog struct { }
DisabledWatchdog represents a disabled WatchdogTimer implementation
func (*DisabledWatchdog) IsInterfaceNil ¶
func (dw *DisabledWatchdog) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*DisabledWatchdog) Set ¶
func (dw *DisabledWatchdog) Set(_ func(alarmID string), _ time.Duration, _ string)
Set does nothing
func (*DisabledWatchdog) SetDefault ¶
func (dw *DisabledWatchdog) SetDefault(_ time.Duration, _ string)
SetDefault does nothing
Click to show internal directories.
Click to hide internal directories.