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

This protocol is used to parse Produce responses.

Return Values

  • {:ok, RecordMetadata.t()} on success with offset and metadata
  • {:error, Error.t()} on error with error details

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

parse_response(response)

View Source
@spec parse_response(t()) ::
  {:ok, KafkaEx.Messages.RecordMetadata.t()}
  | {:error, KafkaEx.Client.Error.t()}