Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expire ¶
type Expire struct {
// contains filtered or unexported fields
}
Expire implements a simple last-seen-time-based expiry logic for watching for disappearing entities (for triggering events or just cache housekeeping). User classes define an expiry delay, then call Update every time they encounter a given entity. ComputeExpires() returns the entity names that have not been seen for longer than the configured delay.
func (*Expire) ComputeExpires ¶
func (e *Expire) ComputeExpires() []workloadmeta.EntityID
ComputeExpires returns a list of IDs that have not been seen in the Expire's duration.
Click to show internal directories.
Click to hide internal directories.