watchdog

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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) Reset

func (dw *DisabledWatchdog) Reset(_ string)

Reset does nothing

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

func (*DisabledWatchdog) Stop

func (dw *DisabledWatchdog) Stop(_ string)

Stop does nothing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL