Daniel Nephin
61ce0964a4
stream: remove Event.Key
...
Makes Payload a type with FilterByKey so that Payloads can implement
filtering by key. With this approach we don't need to expose a Namespace
field on Event, and we don't need to invest micro formats or require a
bunch of code to be aware of exactly how the key field is encoded.
2020-10-28 16:48:04 -04:00
Daniel Nephin
c106d94742
proto: remove Event.Key field
...
The field is never used, and the value is available from the payload.
2020-10-28 16:33:00 -04:00
Daniel Nephin
ab43236f86
proto: remove Event.Namespace field
...
All events are part of a single Topic, so we don't need this field.
2020-10-28 16:33:00 -04:00
Daniel Nephin
44da869ed4
stream: Use a no-op event publisher if streaming is disabled
2020-10-28 13:54:19 -04:00
Daniel Nephin
fb8b68a6ec
stream: close the subscription on Unsubscribe
2020-10-22 13:39:27 -04:00
Daniel Nephin
f06fd96d3a
subscribe: add test cases for newEventFromStreamEvent
2020-10-08 18:48:17 -04:00
Daniel Nephin
ea95908f63
subscribe: Add steps to rpc/subscribe tests
...
To make them easier to follow
2020-10-08 15:38:01 -04:00
Daniel Nephin
e0236b5a9f
Merge pull request #8818 from hashicorp/streaming/add-subscribe-service-batch-events
...
stream: handle batch events as a special case of Event
2020-10-07 21:25:32 -04:00
Daniel Nephin
eb6f2a8d72
structs: add CheckServiceNode.CanRead
...
And use it from the subscribe endpoint.
2020-10-07 18:15:13 -04:00
Daniel Nephin
ad29cf4f94
stream: Return a single event from a subscription.Next
...
Handle batch events as a single event
2020-10-06 13:18:20 -04:00
Daniel Nephin
3183b9ebb3
subscribe: update to use NewSnapshotToFollow event
2020-10-06 12:49:35 -04:00
Daniel Nephin
fa115c6249
Move agent/subscribe -> agent/rpc/subscribe
2020-10-06 12:49:35 -04:00