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, ) (core.WatchdogTimer, error)
NewWatchdog creates a new instance of WatchdogTimer
Types ¶
type DisabledWatchdog ¶ added in v1.1.6
type DisabledWatchdog struct { }
DisabledWatchdog represents a disabled WatchdogTimer implementation
func (*DisabledWatchdog) IsInterfaceNil ¶ added in v1.1.6
func (dw *DisabledWatchdog) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*DisabledWatchdog) Reset ¶ added in v1.1.6
func (dw *DisabledWatchdog) Reset(_ string)
Reset does nothing
func (*DisabledWatchdog) Set ¶ added in v1.1.6
func (dw *DisabledWatchdog) Set(_ func(alarmID string), _ time.Duration, _ string)
Set does nothing
func (*DisabledWatchdog) SetDefault ¶ added in v1.1.6
func (dw *DisabledWatchdog) SetDefault(_ time.Duration, _ string)
SetDefault does nothing
func (*DisabledWatchdog) Stop ¶ added in v1.1.6
func (dw *DisabledWatchdog) Stop(_ string)
Stop does nothing
Click to show internal directories.
Click to hide internal directories.