summaryrefslogtreecommitdiff
path: root/internal/app/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/messages.go')
-rw-r--r--internal/app/messages.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/internal/app/messages.go b/internal/app/messages.go
new file mode 100644
index 0000000..a905263
--- /dev/null
+++ b/internal/app/messages.go
@@ -0,0 +1,28 @@
+package app
+
+import "time"
+
+type videosLoadedMsg struct {
+ videos []video
+ err error
+ cacheErr error
+ pending []string
+ cache *durationCache
+}
+
+type playVideoMsg struct {
+ path string
+ err error
+}
+
+type progressUpdateMsg struct {
+ processed int
+ total int
+ done bool
+}
+
+type durationUpdateMsg struct {
+ path string
+ duration time.Duration
+ err error
+}