func newExpire(source string, expiryDuration time.Duration) (*expire, error) {
	if expiryDuration.Seconds() <= 0.0 {
		return nil, errors.New("expiryDuration must be above 0")
	}

	return &expire{
		source:         source,
		expiryDuration: expiryDuration,
		lastSeen:       make(map[string]time.Time),
		lastExpire:     time.Now(),
	}, nil
}
// newExpire creates a new Expire object. Called when a Collector is started.
newExpire creates a new Expire object. Called when a Collector is started.
// newExpire creates a new Expire object . Called when a Collector is started .
func newExpire(source string, expiryDuration time.Duration) (*expire, error) {
	if expiryDuration.Seconds() <= 0.0 {
		return nil, errors.New("expiryDuration must be above 0")
	}
	return &expire{
		source:         source,
		expiryDuration: expiryDuration,
		lastSeen:       make(map[string]time.Time),
		lastExpire:     time.Now(),
	}, nil
}
func newExpire ( source string , expiryDuration time . Duration ) ( * expire , error ) { if expiryDuration . Seconds ( ) <= 0.0 { return nil , errors . New ( " " ) } return & expire { source : source , expiryDuration : expiryDuration , lastSeen : make ( map [ string ] time . Time ) , lastExpire : time . Now ( ) , } , nil }
newExpire creates a new Expire object.
newExpire creates a new Expire object .