No description
  • Python 96.7%
  • Makefile 3.3%
Find a file
Ryan Petrello edc9f70244
Merge pull request #8 from ansible/release_1.1.4
bump to version 1.1.4
2019-11-26 23:27:39 -05:00
asgi_amqp properly escape broker URLs with special characters (like #) 2019-11-18 12:11:42 -05:00
.gitignore added .gitignore 2016-09-01 16:43:39 -04:00
.travis.yml initial commit of asgi_amqp channel layer 2016-09-01 20:54:39 -04:00
CHANGELOG.txt bump to version 1.1.4 2019-11-26 23:26:11 -05:00
LICENSE Add LICENSE and update Copyright 2017-03-29 12:54:59 -04:00
Makefile Update CHANGELOG.txt 1.1.2 2018-10-09 12:22:23 -04:00
README.rst Remove dep on awx 2018-02-27 22:23:07 -05:00
setup.cfg initial commit of asgi_amqp channel layer 2016-09-01 20:54:39 -04:00
setup.py bump to version 1.1.4 2019-11-26 23:26:11 -05:00
tox.ini update testing and tox file 2017-03-29 14:18:40 -04:00

asgi_amqp
==========

An ASGI channel layer that uses AMQP as its backing store with group support.

Settings
--------

The `asgi_amqp` channel layer looks for settings in `ASGI_AMQP` and
has the following configuration options. URL and connection settings
are configured through `CHANNEL_LAYER` same as any channel layer.

**MODEL**
Set a custom `ChannelGroup` model to use. See more about this in the ChannelGroup
Model section of this README.

Usage::

    ASGI_AMQP = {'MODEL': 'awx.main.models.channels.ChannelGroup'}

**INIT_FUNC**
A function that you want run when the channel layer is first instantiated.

Usage::

    ASGI_AMQP = {'INIT_FUNC': 'awx.prepare_env'}


ChannelGroup Model
------------------

This channel layer requires a database model called `ChannelGroup`. You
can use the model and migation provided by adding `asgi_amqp` to your
installed apps or you can point the `ASGI_AMQP.MODEL` setting to a
model you have already defined.

Installed Apps::

    INSTALLED_APPS = [
        ...
        'asgi_amqp',
        ...
    ]

Settings::

    ASGI_AMQP = {
        'MODEL': 'awx.main.models.channels.ChannelGroup',
    }