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
@type t() :: term()
All the types that implement this protocol.
Functions
@spec parse_response(t()) :: {:ok, :no_error | KafkaEx.Messages.LeaveGroup.t()} | {:error, KafkaEx.Client.Error.t()}