watchdog

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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