live-streamer/server/websocket.go

21 lines
466 B
Go
Raw Permalink Normal View History

2024-10-29 05:11:14 -04:00
package server
2024-10-24 04:23:50 -04:00
2024-10-23 17:06:19 -04:00
type RequestType string
2024-10-23 14:35:37 -04:00
2024-10-23 17:06:19 -04:00
const (
TypeStreamNextVideo RequestType = "StreamNextVideo"
TypeStreamPrevVideo RequestType = "StreamPrevVideo"
TypeQuit RequestType = "Quit"
2024-10-23 14:35:37 -04:00
)
type Request struct {
2024-10-23 17:06:19 -04:00
Type RequestType `json:"type"`
2024-10-23 14:35:37 -04:00
}
2024-10-29 05:11:14 -04:00
type Data struct {
2024-10-23 17:06:19 -04:00
Timestamp int64 `json:"timestamp"`
CurrentVideoPath string `json:"currentVideoPath"`
VideoList []string `json:"videoList"`
Output string `json:"output"`
2024-10-23 14:35:37 -04:00
}