Skip to content

Commit 3583c5b

Browse files
committed
Added stubs for api_queue and community2
Let the rewrite commence!
1 parent dba281a commit 3583c5b

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

api_queue/README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
api_queue
2+
=========
3+
4+
* no database
5+
* Redis datastore for queues.
6+
* (no need to have any info/coupling about tracks)
7+
* sqlite3 for community login tokens?
8+
9+
10+
11+
* asgi
12+
* [aiopyramid](https://aiopyramid.readthedocs.io/index.html)
13+
* [pyramid asgi](https://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/deployment/asgi.html)
14+
* mqtt
15+
* [aiormq](https://github.com/mosquito/aiormq) - Pure python AMQP 0.9.1 asynchronous client library
16+
* [paho-mqtt](https://pypi.org/project/paho-mqtt/) - MQTT version 5.0/3.1.1 client class
17+
* redis
18+
* [redis-py](https://github.com/redis/redis-py) - aoi?
19+
20+
21+
queue datamodel
22+
---------------
23+
24+
Don't need JSON - newline text? split? No need for field names? `test/csv` records? (no heading?)
25+
```
26+
QUEUE_KEY: [
27+
{
28+
"track_id": "BASE64HASH",
29+
"performer_name": 'str',
30+
"session_owner": '',
31+
"weight": float,
32+
}
33+
"timestamp_play": int,
34+
]
35+
```
36+
37+
api
38+
---
39+
40+
* queue
41+
* new
42+
* new queue (demo - 10 tracks?)
43+
* new queue (transient)
44+
* new named queue (admin)
45+
* get_settings
46+
* set_settings (admin)
47+
* queue limit model (priority token or points)
48+
* del queue
49+
* get_tracks
50+
* redirect to static track_datafile from hash of filter_tags
51+
* queue_items operations
52+
* get (only used for testing - this is pushed to mosquito)
53+
* add (limit owner or admin)
54+
* No validation of track_id
55+
* del (owner or admin only)
56+
* update (admin)
57+
* (weight, timestamp_play)
58+
* root
59+
* queues (admin)

community2/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Community2
2+
==========
3+
4+
Placeholder
5+
Used to be part of website - now can load track.json and api_queue in single page webapp
6+

0 commit comments

Comments
 (0)