summaryrefslogtreecommitdiff
path: root/api/agent
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-29 21:20:12 +0800
committerKeuin <[email protected]>2023-07-29 21:20:12 +0800
commit110301a975e43739192577166d089e28c22ae266 (patch)
treee655e00876b0140aa9ad431824765cd1c8371899 /api/agent
parente72342b0027752dc93e57ebec99c4eb9a8aa8efe (diff)
Add API server
Diffstat (limited to 'api/agent')
-rw-r--r--api/agent/agent.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/agent/agent.go b/api/agent/agent.go
new file mode 100644
index 0000000..52c5500
--- /dev/null
+++ b/api/agent/agent.go
@@ -0,0 +1,19 @@
+package agent
+
+import "github.com/keuin/slbr/types"
+
+type Agent interface {
+ GetTasks() []TaskInfo
+}
+
+type TaskStatus string
+
+type LiveRoomInfo struct {
+ ID types.RoomId `json:"id"`
+ Title *string `json:"title"`
+}
+
+type TaskInfo struct {
+ LiveRoom LiveRoomInfo `json:"live_room"`
+ Status string `json:"status"`
+}