From 110301a975e43739192577166d089e28c22ae266 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 29 Jul 2023 21:20:12 +0800 Subject: Add API server --- api/agent/agent.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api/agent/agent.go (limited to 'api/agent/agent.go') 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"` +} -- cgit v1.2.3