View Source KafkaMskAuth.KafkaProtocolLib behaviour (kafka_msk_auth v0.1.0)

KafkaProtocolLib module is a facade behavior/implementation for Erlang's Kafka Protocl library modules Ref: https://github.com/kafka4beam/kafka_protocol Contains wrapper functions for methods in kpro, kpro_lib and kpro_req_lib modules Purpose: Creating this as a behavior helps us mock the network calls made during authentication exchanges

Summary

Callbacks

@callback find(atom() | integer(), map() | list()) :: atom() | binary() | [any()]
Link to this callback

make(atom, non_neg_integer, arg3)

View Source
@callback make(atom(), non_neg_integer(), list() | map()) ::
  {:kpro_req, reference(), atom(), non_neg_integer(), false,
   binary() | list() | map()}
Link to this callback

send_and_recv({}, port, atom, binary, arg5)

View Source
@callback send_and_recv(
  {:kpro_req, reference(), atom(), non_neg_integer(), boolean(),
   binary() | list() | map()},
  port(),
  atom(),
  binary(),
  :infinity | non_neg_integer()
) :: [{atom() | integer(), any()}] | map()

Functions

Link to this function

make(api, version, fields)

View Source
Link to this function

send_and_recv(req, sock, mod, client_id, timeout)

View Source