Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeMonitor ¶
TimeMonitor is used to periodically monitor if time.Now().Sub(refreshTime) is greater than durationThreshold
func NewTimeMonitor ¶
func NewTimeMonitor(name string, interval, unhealthyThreshold, healthyThreshold time.Duration, unhealthyMetricName string, emitter metrics.MetricEmitter, capacity int, healthy bool, ) (*TimeMonitor, error)
func (*TimeMonitor) GetHealthy ¶ added in v0.5.4
func (m *TimeMonitor) GetHealthy() bool
func (*TimeMonitor) UpdateRefreshTime ¶
func (m *TimeMonitor) UpdateRefreshTime()
Click to show internal directories.
Click to hide internal directories.