monitor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INIT state = iota
	ERROR
	PENDING
	OK
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	URL      string
	Timeout  time.Duration
	Retry    int
	Interval time.Duration
	// contains filtered or unexported fields
}

type Watcher

type Watcher struct {
	Monitors  []*Monitor
	Notifiers []notifier.Notifier
	Writers   []writer.Writer
	// contains filtered or unexported fields
}

func (*Watcher) Stop

func (w *Watcher) Stop()

func (*Watcher) Watch

func (w *Watcher) Watch()

Jump to

Keyboard shortcuts

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