franz-go icon indicating copy to clipboard operation
franz-go copied to clipboard

Serde options refactor

Open lovromazgon opened this issue 11 months ago • 0 comments

This is a follow-up to https://github.com/twmb/franz-go/pull/467#discussion_r1231620122.

This PR includes the following changes:

  • Rename Opt to ClientOpt
  • Rename SerdeOpt to EncodingOpt
  • Introduce a new SerdeOpt, which will ultimately be used to set the SerdeHeader (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)

lovromazgon avatar Jul 09 '23 06:07 lovromazgon