MCPcopy
hub / github.com/IBM/sarama / ByteEncoder

TypeAlias ByteEncoder

utils.go:88–88  ·  utils.go::ByteEncoder

ByteEncoder implements the Encoder interface for Go byte slices so that they can be used as the Key or Value in a ProducerMessage.

Source from the content-addressed store, hash-verified

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.
88type ByteEncoder []byte
89
90func (b ByteEncoder) Encode() ([]byte, error) {
91 return b, nil

Callers 15

mainFunction · 0.92
generateMessagesFunction · 0.92
ConsumeClaimMethod · 0.92
TestHashPartitionerFunction · 0.85
BenchmarkProducerSmallFunction · 0.85
BenchmarkProducerMediumFunction · 0.85
BenchmarkProducerLargeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected