Skip to content

Generate event type identifiers#211

Merged
erwinvaneyk merged 1 commit intomasterfrom
event-gens
Sep 21, 2018
Merged

Generate event type identifiers#211
erwinvaneyk merged 1 commit intomasterfrom
event-gens

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