watchdog

package module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger interface {
	Warning(arg ...any)
	Warningf(format string, arg ...any)
	Error(arg ...any)
}

Functions

This section is empty.

Types

type Watchdog

type Watchdog struct {
	// contains filtered or unexported fields
}

func New added in v0.4.0

func New(signals ...os.Signal) *Watchdog

func (*Watchdog) Join

func (w *Watchdog) Join() int

func (*Watchdog) RegisterHealthFunc

func (w *Watchdog) RegisterHealthFunc(f func() bool)

func (*Watchdog) RegisterStopFunc

func (w *Watchdog) RegisterStopFunc(f func() error)

func (*Watchdog) Start

func (w *Watchdog) Start()

func (*Watchdog) Trigger

func (w *Watchdog) Trigger()

Jump to

Keyboard shortcuts

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