-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stubs for
api_queue
and community2
Let the rewrite commence!
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
api_queue | ||
========= | ||
|
||
* no database | ||
* Redis datastore for queues. | ||
* (no need to have any info/coupling about tracks) | ||
* sqlite3 for community login tokens? | ||
|
||
|
||
|
||
* asgi | ||
* [aiopyramid](https://aiopyramid.readthedocs.io/index.html) | ||
* [pyramid asgi](https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/deployment/asgi.html) | ||
* mqtt | ||
* [aiormq](https://github.com/mosquito/aiormq) - Pure python AMQP 0.9.1 asynchronous client library | ||
* [paho-mqtt](https://pypi.org/project/paho-mqtt/) - MQTT version 5.0/3.1.1 client class | ||
* redis | ||
* [redis-py](https://github.com/redis/redis-py) - aoi? | ||
|
||
|
||
queue datamodel | ||
--------------- | ||
|
||
Don't need JSON - newline text? split? No need for field names? `test/csv` records? (no heading?) | ||
``` | ||
QUEUE_KEY: [ | ||
{ | ||
"track_id": "BASE64HASH", | ||
"performer_name": 'str', | ||
"session_owner": '', | ||
"weight": float, | ||
} | ||
"timestamp_play": int, | ||
] | ||
``` | ||
|
||
api | ||
--- | ||
|
||
* queue | ||
* new | ||
* new queue (demo - 10 tracks?) | ||
* new queue (transient) | ||
* new named queue (admin) | ||
* get_settings | ||
* set_settings (admin) | ||
* queue limit model (priority token or points) | ||
* del queue | ||
* get_tracks | ||
* redirect to static track_datafile from hash of filter_tags | ||
* queue_items operations | ||
* get (only used for testing - this is pushed to mosquito) | ||
* add (limit owner or admin) | ||
* No validation of track_id | ||
* del (owner or admin only) | ||
* update (admin) | ||
* (weight, timestamp_play) | ||
* root | ||
* queues (admin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Community2 | ||
========== | ||
|
||
Placeholder | ||
Used to be part of website - now can load track.json and api_queue in single page webapp | ||
|