Skip to content

types: rename and extend the EventData interface#7687

Merged
creachadair merged 5 commits intomasterfrom
mjf/event-data-shuffle
Jan 26, 2022
Merged

types: rename and extend the EventData interface#7687
creachadair merged 5 commits intomasterfrom
mjf/event-data-shuffle

Conversation

@creachadair
Copy link

@creachadair creachadair commented Jan 25, 2022

This is the interface shared by types that can be used as event data in, for
example, subscriptions via the RPC.

To be compatible with the RPC service, data need to support JSON encoding.
Require this as part of the interface.

This is a precursor to further refactoring between pubsub/RPC.

@creachadair creachadair force-pushed the mjf/event-data-shuffle branch 3 times, most recently from 05769bd to 9198dee Compare January 25, 2022 19:18
@creachadair creachadair marked this pull request as ready for review January 25, 2022 19:26
@creachadair creachadair force-pushed the mjf/event-data-shuffle branch from 8867f6b to 14bf862 Compare January 26, 2022 14:03
@creachadair creachadair force-pushed the mjf/event-data-shuffle branch 2 times, most recently from 38f760a to dda8a80 Compare January 26, 2022 14:19
M. J. Fromberger added 3 commits January 26, 2022 06:23
This is the interface shared by types that can be used as event data in, for
example, subscriptions via the RPC.

To be compatible with the RPC service, data need to support JSON encoding.
Require this as part of the interface.

Fully propagating this change will require updating the method signatures for
the pubsub package too. For now, to keep this change more self-contained, I
have inserted type assertions with error checks in the RPC subscription
handlers.
@creachadair creachadair force-pushed the mjf/event-data-shuffle branch from dda8a80 to 62ff916 Compare January 26, 2022 14:23
@creachadair creachadair merged commit 441ecba into master Jan 26, 2022
@creachadair creachadair deleted the mjf/event-data-shuffle branch January 26, 2022 15:01
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.

3 participants