misha_cafex v0.0.6 Cafex.Protocol.Request protocol

The Cafex.Protocol.Request protocol used by Cafex.Protocol module.

Read A Guide To The Kafka Protocol for more details.

Summary

Functions

Return the API Key of the request type

Return the per-api based version number of a API request

Return the decoder module of the response

Encode the request struct to binary

Kafka server will reply to every request except produce request if the required_acks is 0 for now

Types

t :: term

Functions

api_key(req)

Return the API Key of the request type

api_version(req)

Return the per-api based version number of a API request

decoder(req)

Return the decoder module of the response

encode(req)

Encode the request struct to binary

has_response?(req)

Kafka server will reply to every request except produce request if the required_acks is 0 for now.

Cafex.Protocol module will call this function on every request to check if server will reply or not.