Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

117 / Metadata for events #278

Merged
merged 4 commits into from
Dec 22, 2020
Merged

Conversation

maxekman
Copy link
Member

@maxekman maxekman commented Dec 14, 2020

Description

Adds metadata to events. Useful for app-specific metadata such as request ID, issuing user etc.

Affected Components

  • Event interface
  • Event Store
  • Event Bus

Related Issues

Closes #117

Solution and Design

Adds metadata with a new option construct for the NewEvent() functions, in this case the option is WithMetadata(). Also deprecates NewEventForAggregate() in favour of the ForAggregate() option.

Steps to test and verify

@maxekman maxekman force-pushed the 117/metadata-for-events branch 3 times, most recently from 438b101 to ffc28b4 Compare December 14, 2020 18:02
event.go Outdated Show resolved Hide resolved
@maxekman maxekman force-pushed the 117/metadata-for-events branch 6 times, most recently from bbab027 to e9410af Compare December 21, 2020 20:33
@maxekman maxekman merged commit bad92fb into looplab:master Dec 22, 2020
@maxekman maxekman deleted the 117/metadata-for-events branch January 29, 2021 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[events] Metadata for events
2 participants