redix_stream v0.1.0 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(), stream: Redix.Stream.t(), 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()) :: Supervisor.Spec.spec()
Starts a new GenServer of Redix.Stream.Consumer
.