pubsub/pstest: add TopicID field to the Message struct #10439
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Right now there is no way to identify the topic id of a
pstest.Message
that returned from callingpstest.Server.Messages
method.Describe the solution you'd like
Create a new
TopicID
field inpstest.Message
and ensure that it gets populated when a client is publishing to the fake server.Describe alternatives you've considered
None, I believe the first solution is pretty straightforward and quite trivial to implement.
Additional context
I can help contribute to this feature request on approval.
The text was updated successfully, but these errors were encountered: