boltun v1.0.0 Boltun.Listener
Listens to Postgrex notifications and invokes the registed callbacks.
Summary
Functions
Adds a callback to the given channel
Removes all callbacks for the given channel
Starts a listener. Expects a keyword list with the following parameters
:connection
=> pid or name of the connection to the database:callbacks_agent
=> pid or name of the agent keeping track of the callbacks
Stops this listener and deregisters all channels
Functions
Starts a listener. Expects a keyword list with the following parameters
:connection
=> pid or name of the connection to the database:callbacks_agent
=> pid or name of the agent keeping track of the callbacksand a keyword list with GenServer specific options, like
:name
.