(ctx context.Context, ids EntityIdentifiers, data any)
| 60 | } |
| 61 | |
| 62 | func (b *builder) NewWithIdentifiersAndData(ctx context.Context, ids EntityIdentifiers, data any) Event { |
| 63 | e := local(b.New(ctx)) |
| 64 | if ids != nil { |
| 65 | e.innerEvent.Identifiers = append(e.innerEvent.Identifiers, ids.GetEntityIdentifiers()) |
| 66 | } |
| 67 | if data != nil { |
| 68 | e.data = data |
| 69 | } |
| 70 | return e |
| 71 | } |
| 72 | |
| 73 | func (b *builder) BindData(data any) Builder { |
| 74 | return b.With(WithData(data)) |
nothing calls this directly
no test coverage detected