MCPcopy
hub / github.com/segmentio/kafka-go / init

Function init

protocol/rawproduce/rawproduce.go:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func init() {
11 // Register a type override so that raw produce requests will be encoded with the correct type.
12 req := &Request{}
13 protocol.RegisterOverride(req, &produce.Response{}, req.TypeKey())
14}
15
16type Request struct {
17 TransactionalID string `kafka:"min=v3,max=v8,nullable"`

Callers

nothing calls this directly

Calls 2

TypeKeyMethod · 0.95
RegisterOverrideFunction · 0.92

Tested by

no test coverage detected