WithIdentifiers returns an option that sets the identifiers of the event.
(identifiers ...EntityIdentifiers)
| 38 | |
| 39 | // WithIdentifiers returns an option that sets the identifiers of the event. |
| 40 | func WithIdentifiers(identifiers ...EntityIdentifiers) Option { |
| 41 | return optionFunc(func(e *event) { |
| 42 | for _, ids := range identifiers { |
| 43 | e.innerEvent.Identifiers = append(e.innerEvent.Identifiers, ids.GetEntityIdentifiers()) |
| 44 | } |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | // WithData returns an option that sets the data of the event. |
| 49 | func WithData(data any) Option { |