redix_stream v0.2.1 Redix.Stream.Consumer

A Server which handle a single connection to a redix stream.

Link to this section Summary

Functions

Returns child specification when used with a supervisor

Handles a new message from a stream, dispatching it to the given handler

Initializes a new Redix.Stream.Consumer, establishing a long-term stream with the given redis server

Link to this section Types

Link to this type consumer_name()
consumer_name() :: String.t()
Link to this type group_name()
group_name() :: String.t()
Link to this type state()
state() :: %{
  redix: Redix.Stream.redix(),
  stream: Redix.Stream.t(),
  group_name: group_name(),
  consumer_name: consumer_name(),
  handler: function() | Redix.Stream.handler(),
  process_pending: boolean(),
  raise_errors: boolean()
}

Link to this section Functions

Returns child specification when used with a supervisor.

Link to this function handle_info(arg, state)

Handles a new message from a stream, dispatching it to the given handler.

Initializes a new Redix.Stream.Consumer, establishing a long-term stream with the given redis server.

Link to this function start_link(redix, stream, handler, opts \\ [])

Starts a new GenServer of Redix.Stream.Consumer.

Link to this function terminate(reason, state)