amqp-worker-0.4.0: Type-safe AMQP workers
Safe HaskellSafe-Inferred
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 :: Connection -> (Channel -> IO b) -> IO b Source #

Perform an action with a channel resource