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

This protocol is used to parse ApiVersions responses.

For versions without a specific implementation, falls back to the Any implementation which delegates to ResponseHelpers.parse/1. This handles all V1+ responses that include throttle_time_ms.

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.ApiVersions.t()} | {:error, KafkaEx.Client.Error.t()}