- Fetch from upstream latest changes #36
- Upgrade dependencies and give support from go v1.15 onwards #41
- New feature: Produce Avro formatted messages #38 #39 #40
Avro formatted messages production
- Using latest version available using
TopicNameStrategy
to know the schema subject to use:
# subject: "actors-value"
echo '{"value": {"FirstName": "Ryan"}, "key": "id-42"}' | hkt produce -topic actors -registry http://localhost:8081 -valuecodec avro
- Using latest version available using
TopicRecordNameStrategy
to know the schema subject to use:
# subject: "actors-record"
echo '{"value": {"FirstName": "Ryan"}, "key": "id-42"}' | hkt produce -topic actors -registry http://localhost:8081 -valuecodec avro -value-avro-record-name record
- Using schema provided in
-value-avro-schema-file
parameter:
echo '{"value": {"FirstName": "Ryan"}, "key": "id-42"}' | hkt produce -topic actors -registry http://localhost:8081 -valuecodec avro -value-avro-schema-file file.avsc
- Using schema unique identifier provided in
-value-avro-schema-id
parameter:
echo '{"value": {"FirstName": "Ryan"}, "key": "id-42"}' | hkt produce -topic actors -registry http://localhost:8081 -valuecodec avro -value-avro-schema-id 100