ZiyaoWei opened a new pull request #741:
URL: https://github.com/apache/pulsar-client-go/pull/741
Master Issue: #344
### Motivation
#368 adds support for schemas in consumer and producer, but didn't add the
corresponding option to reader. This fixes that.
### Modifications
Add `schema` field to `ReaderOptions` and pass the value to the consumer so
messages can be read with a schema.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
`go test -run ^TestReaderWithSchema$ ./pulsar`
### Does this pull request potentially affect one of the following parts:
- The public API: yes
### Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? GoDoc
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]