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

Generate event type identifiers #211

Merged
merged 1 commit into from
Sep 21, 2018
Merged

Generate event type identifiers #211

merged 1 commit into from
Sep 21, 2018

Conversation

erwinvaneyk
Copy link
Member

In #179 we moved from unstructured events to structured events, where every event should be a struct. Due to the reliance on protobuf throughout the project, these events were implemented as protobuf messages and generated to Golang structs. However they still lacked an easy way to identify them by single identifier, other than expensive reflection.

This PR adds code-generation of the event type names. All code using reflection has been changed to use these generated types instead.

@erwinvaneyk erwinvaneyk merged commit d74b30c into master Sep 21, 2018
@erwinvaneyk erwinvaneyk deleted the event-gens branch September 21, 2018 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant