ByteEncoder implements the Encoder interface for Go byte slices so that they can be used as the Key or Value in a ProducerMessage.
| 86 | // ByteEncoder implements the Encoder interface for Go byte slices so that they can be used |
| 87 | // as the Key or Value in a ProducerMessage. |
| 88 | type ByteEncoder []byte |
| 89 | |
| 90 | func (b ByteEncoder) Encode() ([]byte, error) { |
| 91 | return b, nil |
no outgoing calls
no test coverage detected