summaryrefslogtreecommitdiff
path: root/internal/app/messages.go
blob: a9052634d06023abb74633ff9b9d2b48bb1c4651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}