Publish ITWorx Pulse source
Public source validation / validate (push) Failing after 3m8s

This commit is contained in:
ITWorx Pulse release export
2026-09-03 02:09:19 +02:00
commit bd774932d5
614 changed files with 77116 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package alertcontrol
import (
"context"
"time"
)
type ExpiryJob struct {
Store Store
Now func() time.Time
}
func (job ExpiryJob) Run(ctx context.Context) (ExpiryResult, error) {
if job.Now == nil {
job.Now = time.Now
}
return job.Store.Expire(ctx, job.Now().UTC())
}