command
module
Version:
v0.0.0-...-646cb8e
Opens a new window with list of versions in this module.
Published: Sep 15, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Synchronous Controller
リアルタイムなスライドを実現するためのめちゃくちゃすごい(自分調べ)Dapr appです。
Env
DB_USER=
DATABASE_NAME=
DB_PASSWORD=
Tests
# postgres start (homebrew onlu)
./tools/start_local_db.sh
# create db
create hello-slide-test -O postgres
# run test
./tools/db_test.sh [db username]
# delete db
dropdb hello-slide-test
# stop postgres
./tools/stop_local_db.sh
Websocket types
-
セッション開始リクエスト(Host)
# req
{
"type": "0"
}
# res
{
"type": "0",
"version": "1.0",
"id": "",
}
-
セッション開始リクエスト(visitor)
# req
{
"type": "1",
"id": ""
}
# res
{
"type": "1",
"version": "1.0",
}
-
参加者数取得
# res
{
"type": "2",
"visitors": "10",
}
-
回答取得
# res
{
"type": "3",
"answers": [
{
"id": "",
"user_id": "",
"name": "",
"answer": "",
},
{
"id": "",
"user_id": "",
"name": "",
"answer": "",
},
...
]
}
-
新しいトピック割当
# req
{
"type": "4",
"topic": "",
}
-
トピック送信(visitor)
# res
{
"type": "5",
"topic": "",
}
-
回答(visitor)
# req
{
"type": "6",
"answer": "",
"name": "",
}
LICENSE
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.