pollercrstates

package
v0.0.0-...-62f2ae4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPoller

type IPoller struct {
	// monitors is the array of Traffic Monitor FQDNs to poll
	// TODO make Monitors part of Shared, so it can be set/get in a threadsafe manner
	Monitors []string // TODO change to URL?
	Shared   *shared.Shared
	// contains filtered or unexported fields
}

Poller polls Monitors every Interval, and updates the CRStates.

func MakePoller

func MakePoller(interval time.Duration, monitors []string, shared *shared.Shared) (*poller.Poller, *IPoller)

func (*IPoller) Poll

func (po *IPoller) Poll()

func (*IPoller) Reset

func (po *IPoller) Reset()

Jump to

Keyboard shortcuts

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