wolfstudy commented on a change in pull request #3904: [go schema] support go
schema for pulsar-client-go
URL: https://github.com/apache/pulsar/pull/3904#discussion_r277198704
##########
File path: pulsar-client-go/pulsar/message.go
##########
@@ -66,6 +69,9 @@ type Message interface {
// Get the key of the message, if any
Key() string
+
+ //Get the de-serialized value of the message, according the configured
+ GetValue(v interface{}) error
Review comment:
Or we can think about it from another angle. If we use interface as the
return value, we intend to parse `data []byte` for the type of data structure?
----------------------------------------------------------------
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]
With regards,
Apache Git Services