You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `KafkaProducerMessage`: generic key & value
Motivation:
We want to allow our users to feed arbitrary data as `key` and `value`
of a `KafkaProducerMessage`.
Modifications:
* add new `public protocol KafkaBuffer` which asks implementing types to
provide safe access to an `UnsafeMutableRawBufferPointer` containing
the data
* implement `KafkaBuffer` in `String`
* implement `KafkaBuffer` in `ByteBuffer`
* update tests
* Review Franz
Modifications:
* remove duplicate docc comments for `KafkaBuffer` adopters
* spell out `K` and `V` as `Key` and `Value`
* `String+KafkaBuffer`: only convert `String` to `ByteBuffer` on slow
path (no contiguous bytes availble)
* make `Never` conform to `KafkaBuffer`
* `KafkaProducerMessage`: make `key` optional
* `KafkaContiguousBytes` type
Modifications:
* change `KafkaBuffer` `protocol` into `KafkaContiguousBytes` type (similar to
`SwiftProtobuf/SwiftProtobufContiguousBytes`)
* make `Array where Array.Element == UInt8` conform to
`KafkaContiguousBytes`
* Fix post-rebase issue
* Changes Franz
Modifications:
* fix outdated `KafkaProducerMessage` documentation
* simplify `String+KafkaContiguousBytes`
0 commit comments