periodic

package
v0.0.0-...-ff6eb74 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Monitor periodically iterates the map of adapters and updates the fetched versions

func NewMonitor

func NewMonitor(logger logging.Logger, config *monitor.Config, adapters monitor.AdapterRegistry) *Monitor

NewMonitor returns a new fetcher instance

func (*Monitor) Run

func (m *Monitor) Run()

Run fetch for all targets

func (*Monitor) Start

func (m *Monitor) Start() error

Start the periodic fetching

func (*Monitor) Versions

func (m *Monitor) Versions() ([]monitor.Version, time.Time, error)

Versions returns the latest set of versions cached since the last update

Jump to

Keyboard shortcuts

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