poller

package
v1.2.13-prerelease04 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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