franz-go
franz-go copied to clipboard
Serde options refactor
This is a follow-up to https://github.com/twmb/franz-go/pull/467#discussion_r1231620122.
This PR includes the following changes:
- Rename
Opt
toClientOpt
- Rename
SerdeOpt
toEncodingOpt
- Introduce a new
SerdeOpt
, which will ultimately be used to set theSerdeHeader
(this can only be included once https://github.com/twmb/franz-go/pull/467 is merged) - Introduce the encoding option
ID
which lets you specify which schema ID to use when encoding (specifically useful when encoding dynamic data)