View Source EredisSub.Server (eredis_sub v0.1.0)

Holds internal state for EredisSub, which are: a connection to publish, a connection to subscribe and a map of subscriptions.

Also, it converts Elixir strings to Erlang charlists used by eredis.

Do not use this module directly. Instead, use EredisSub.

Summary

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

publish(channel, message, name \\ __MODULE__)

View Source
Link to this function

start_link(config, name \\ __MODULE__)

View Source
Link to this function

subscribe(channel, handler_module, metadata \\ %{}, name \\ __MODULE__)

View Source
Link to this function

unsubscribe_all(channel, name \\ __MODULE__)

View Source