poller

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller struct {
	Log      logr.Logger
	Notifier notifier.Notifier
	Events   <-chan string
	Interval int
	Timeout  int
	Client   flux.Client
	// contains filtered or unexported fields
}

Poller checks the health of workloads.

func NewPoller

func NewPoller(l logr.Logger, n notifier.Notifier, e <-chan string, fAddr string, pi int, pt int) (*Poller, error)

NewPoller creates and returns a Poller instance.

func (*Poller) Start

func (p *Poller) Start()

Start starts the poller and waits for new events.

func (*Poller) Stop

func (p *Poller) Stop(ctx context.Context) error

Stop gracefully cancels any running poll jobs and stops listening for new ones.

Jump to

Keyboard shortcuts

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