View Source MyClient (Klife v0.5.0)

Example test client

Summary

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_default_partitioner()

View Source
Link to this function

produce(rec, opts \\ [])

View Source
@spec produce(Klife.Record.t(), opts :: list() | nil) ::
  {:ok, Klife.Record.t()} | {:error, Klife.Record.t()}

Callback implementation for Klife.Client.produce/2.

Link to this function

produce_async(rec, opts \\ [])

View Source
@spec produce_async(Klife.Record.t(), opts :: list() | nil) :: :ok

Callback implementation for Klife.Client.produce_async/2.

Link to this function

produce_batch(recs, opts \\ [])

View Source
@spec produce_batch([Klife.Record.t()], opts :: list() | nil) :: [
  ok: Klife.Record.t(),
  error: Klife.Record.t()
]

Callback implementation for Klife.Client.produce_batch/2.

Link to this function

produce_batch_async(recs, opts \\ [])

View Source
@spec produce_batch_async(Klife.Record.t(), opts :: list() | nil) :: :ok

Callback implementation for Klife.Client.produce_batch_async/2.

Link to this function

produce_batch_txn(recs, opts \\ [])

View Source
@spec produce_batch_txn([Klife.Record.t()], opts :: list() | nil) ::
  [{:ok, [Klife.Record.t()]}] | [{:error, [Klife.Record.t()]}]

Callback implementation for Klife.Client.produce_batch_txn/2.

Link to this function

transaction(fun, opts \\ [])

View Source
@spec transaction(function(), opts :: list() | nil) :: any()

Callback implementation for Klife.Client.transaction/2.