amqp-worker-0.3.2

Safe HaskellNone
LanguageHaskell2010

Network.AMQP.Worker.Connection

Synopsis

Documentation

data Connection Source #

Internal connection details

Constructors

Connection 

Fields

connect :: MonadIO m => ConnectionOpts -> m Connection Source #

Connect to the AMQP server.

conn <- connect (fromURI "amqp://guest:guest@localhost:5672")

withChannel :: MonadBaseControl IO m => Connection -> (Channel -> m b) -> m b Source #

Perform an action with a channel resource