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

This protocol is used to parse LeaveGroup responses.

Return Values

  • V0: {:ok, :no_error} on success
  • V1-V2: {:ok, LeaveGroup.t()} on success (includes throttle_time_ms)
  • V3+: {:ok, LeaveGroup.t()} on success (includes throttle_time_ms and members)
  • All versions: {:error, Error.t()} on error

All known versions (V0-V4) 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, :no_error | KafkaEx.Messages.LeaveGroup.t()}
  | {:error, KafkaEx.Client.Error.t()}