This commit is contained in:
Elio Bischof
2023-07-03 12:25:58 +02:00
parent 2a1149a67a
commit 1d64cc6129
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
// Package pseudo contains virtual events, that are not stored in the eventstore.
package pseudo
import (
@@ -20,6 +21,8 @@ type ScheduledEvent struct {
InstanceIDs []string `json:"-"`
}
// NewScheduledEvent returns an event that can be processed by event handlers like any other event.
// It receives the current timestamp and an ID list of instances that are active and should be processed.
func NewScheduledEvent(
ctx context.Context,
timestamp time.Time,