File tree 2 files changed +65
-0
lines changed
2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
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)
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments