poller

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewPoller

func NewPoller(urlGetter urlgetter.URLGetter, scraper scraper.Scraper, consumers []consumers.Consumer, logger *zap.Logger) *Poller

func (*Poller) Poll

func (p *Poller) Poll() error

Poll polls the scraper and sends the incidents to the consumers It blocks forever unless an unrecoverable error occurs

Jump to

Keyboard shortcuts

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