watchdog

package
v1.1.56 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: GPL-3.0 Imports: 8 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,
) (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

Jump to

Keyboard shortcuts

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