summaryrefslogtreecommitdiff
path: root/internal/app/messages.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-02 08:38:03 +0300
committerPaul Buetow <paul@buetow.org>2025-10-02 08:38:03 +0300
commit0c1b108ff5fccf39ae5bc6dc06802ce565bda633 (patch)
tree914e65e04bae26d3eae565f9d6a64d08ade361d0 /internal/app/messages.go
parent36be499ed342d92969ccaaff083c557a0951def9 (diff)
new version major refactorv0.2.0
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
+}