Skip to content
Browse files

Document the DashiConnection constructor

  • Loading branch information...
1 parent 09eb6d6 commit 7cf8f03802349152385ca1191ed0a6c794d4d78b @priteau priteau committed Jan 25, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 dashi/__init__.py
View
12 dashi/__init__.py
@@ -21,6 +21,18 @@ class DashiConnection(object):
#TODO support connection info instead of uri
def __init__(self, name, uri, exchange, durable=False, auto_delete=True, serializer=None):
+ """Set up a Dashi connection
+
+ @param name: name of destination service queue used by consumers
+ @param uri: broker URI (e.g. 'amqp://guest:guest@localhost:5672//')
+ @param exchange: name of exchange to create and use
+ @param durable: if True, destination service queue and exchange will be
+ created as durable
+ @param auto_delete: if True, destination service queue and exchange
+ will be deleted when all consumers are gone
+ @param serializer: specify a serializer for message encoding
+ """
+
self._conn = BrokerConnection(uri)
self._name = name
self._exchange_name = exchange

0 comments on commit 7cf8f03

Please sign in to comment.
Something went wrong with that request. Please try again.