RigKafka.Client (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

The Kafka client that holds connections to one or more brokers.

Link to this section Summary

Link to this section Types

Specs

callback() :: (any() -> :ok | any())

Specs

kafka_headers() :: list()

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

produce(map, topic, schema, key, plaintext)

View Source
Link to this function

produce(map, topic, schema, key, plaintext, headers)

View Source

Specs

start_link(list()) :: {:ok, pid()} | :ignore | {:error, any()}
Link to this function

start_supervised(config, callback \\ nil)

View Source

Specs

start_supervised(RigKafka.Config.t(), callback() | nil) ::
  {:ok, pid()} | :ignore | {:error, any()}
Link to this function

stop_supervised(client_pid)

View Source

Specs

stop_supervised(pid()) :: :ok | {:error, :not_found}