wolfstudy commented on a change in pull request #368:
URL: https://github.com/apache/pulsar-client-go/pull/368#discussion_r503657990
##########
File path: pulsar/message.go
##########
@@ -27,6 +27,9 @@ type ProducerMessage struct {
// Payload for the message
Payload []byte
+ //Value and payload is mutually exclusive, `Value interface{}` for
schema message.
+ Value interface{}
Review comment:
Should not be private, this interface is to be exposed to users, for
example:
```
err := producer.Send(context.Background(), ProducerMessage{
Value: &testJson{
ID: 100,
Name: "pulsar",
},
})
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]