poller

package
v1.2.12-prerelease7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

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

func NewPollerHistory

func NewPollerHistory(historyUpdatedFunc HistoryUpdatedFunc, timeSource clock.TimeSource) *History

func (*History) GetPollerInfo

func (pollers *History) GetPollerInfo(earliestAccessTime time.Time) []*types.PollerInfo

func (*History) GetPollerIsolationGroups

func (pollers *History) GetPollerIsolationGroups(earliestAccessTime time.Time) map[string]struct{}

func (*History) UpdatePollerInfo

func (pollers *History) UpdatePollerInfo(id Identity, info Info)

type HistoryUpdatedFunc

type HistoryUpdatedFunc func()

HistoryUpdatedFunc is a type for notifying applications when the poller history was updated

type Identity

type Identity string

type Info

type Info struct {
	RatePerSecond  float64
	IsolationGroup string
}

Jump to

Keyboard shortcuts

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