poller

package
v1.2.14-prerelease14 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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 interface {
	UpdatePollerInfo(id Identity, info Info)
	HasPollerAfter(earliestAccessTime time.Time) bool
	GetPollerInfo(earliestAccessTime time.Time) []*types.PollerInfo
	GetPollerIsolationGroups(earliestAccessTime time.Time) map[string]int
}

func NewPollerHistory

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

type HistoryUpdatedFunc

type HistoryUpdatedFunc func()

HistoryUpdatedFunc is a type for notifying applications when the poller historyCache 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