watch

package
v0.0.0-...-4cd1efa Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher watches target server health and creates metrics from it.

func NewWatcher

func NewWatcher(
	targetURLs []string,
	interval time.Duration,
	httpClient *well.HTTPClient,
) *Watcher

NewWatcher creates an Ingress watcher.

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

Run repeats to get server health and send it via channel.

Jump to

Keyboard shortcuts

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