coturn: Add new component for usage of coturn by other apps

Sunil:

 - Add TurnConfiguration to reference documentation. Add more details in
 docstrings.

 - Rename the component to TurnConsumer since 'Component' in the name is
 redundant and unconventional. Also, hopefully, the component will retain the
 API over multiple TURN servers.

 - Log when notifying other components about configuration change.

 - Use TurnConfiguration class more widely.

 - Refactor for simplicity.

 - Additional tests.

 - Move URI generation code into TurnConfiguration.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2021-02-28 16:28:41 -08:00
1 parent db993ecb16
commit ceacde67b9
5 files changed
+194 -3

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
.. SPDX-License-Identifier: CC-BY-SA-4.0
Coturn
^^^^^^
.. autoclass:: plinth.modules.coturn.components.TurnConsumer
:members:
.. autoclass:: plinth.modules.coturn.components.TurnConfiguration
:members:
+1
View File
@@ -16,6 +16,7 @@ Components
letsencrypt
staticfiles
backups
coturn
Base Classes
^^^^^^^^^^^^