View Source KafkaEx.Protocol.Kayrock.Produce.Request protocol (kafka_ex v1.0.0-rc.1)

This protocol is used to build Produce requests.

Implementations must populate the request struct with:

  • acks - Required acknowledgments (-1, 0, or 1)
  • timeout - Request timeout in milliseconds
  • topic_data - List of topic/partition/messages data
  • transactional_id (V3+ only) - Transaction ID for transactional producers

All known versions (V0-V8) have explicit implementations. The Any fallback handles unknown future versions.

Summary

Types

t()

All the types that implement this protocol.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

build_request(request, opts)

View Source
@spec build_request(t(), Keyword.t()) :: t()