freddy v0.9.1 Freddy.Notifications.Broadcaster
Freddy.Publisher special case.
This module allows to publish messages to freddy-topic exchange.
See documentation for Freddy.Publisher.
Link to this section Summary
Functions
See Freddy.Publisher.ack/1
See Freddy.Publisher.ack/2
Publish message with the given routing_key and payload to “freddy-topic” exchange.
The message will be encoded to JSON before publication
See Freddy.Publisher.nack/1
See Freddy.Publisher.nack/2
See Freddy.Publisher.reject/1
See Freddy.Publisher.reject/2
Starts a Freddy.Broadcaster process linked to the current process
Link to this section Functions
See Freddy.Publisher.ack/1.
See Freddy.Publisher.ack/2.
Publish message with the given routing_key and payload to “freddy-topic” exchange.
The message will be encoded to JSON before publication.
Arguments:
broadcaster- the pid of aFreddy.Broadcasterprocessrouting_key- message routing keypayload- message payloadopts- AMQPbasic.publishoptions (seeAMQP.Basic.publish/5documentation)
See Freddy.Publisher.nack/1.
See Freddy.Publisher.nack/2.
See Freddy.Publisher.reject/1.
See Freddy.Publisher.reject/2.
start_link(module, GenServer.server, initial :: term, GenServer.options) :: GenServer.on_start
Starts a Freddy.Broadcaster process linked to the current process.
The process will be started by calling init with the given initial value.
Arguments:
mod- the module that defines the server callbacks (like GenServer)conn- the pid of aHare.Core.Connprocessinitial- the value that will be given toinit/1opts- the GenServer options