cloudevents / sdk-go

Go SDK for CloudEvents
https://cloudevents.github.io/sdk-go/
Apache License 2.0
776 stars 216 forks source link

Propose adding receiver transformer for message queue protocols #1054

Closed yanmxa closed 3 days ago

yanmxa commented 1 month ago

Some of the event metadata might differ between sender and receiver. Like the Kafka protocol, we expect to add the topic/partition/offset information after receiving the event.

However, I am concerned about whether this will undermine the original design intent of the structured mode. Therefore, I opened the issue here for discussing. At the same time, to express my ideas more clearly, I also drafted a PR to demonstrate possible code changes: https://github.com/cloudevents/sdk-go/pull/1053