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
Starts a new GenServer of Redix.Stream.Consumer
Link to this section Types
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.
Link to this function
init(arg)
init({Redix.Stream.redix(), Redix.Stream.t(), function() | mfa(), keyword()}) :: {:ok, state()}
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 \\ [])
start_link( Redix.Stream.redix(), Redix.Stream.t(), function() | mfa(), keyword() ) :: GenServer.on_start()
Starts a new GenServer of Redix.Stream.Consumer
.