redix_stream v0.1.3 Redix.Stream.Consumer

Link to this section Summary

Functions

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(),
  consumer_group_command_connection: Redix.Stream.redix(),
  stream: Redix.Stream.t(),
  group_name: group_name(),
  consumer_name: consumer_name(),
  handler: function() | mfa()
}

Link to this section Functions

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.