summaryrefslogtreecommitdiff
path: root/internal/app/messages.go
blob: 6c571f7cf8f4784862ef96e6cc62faf7f1811a2e (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
29
30
31
32
33
34
35
package app

import "time"

type videosLoadedMsg struct {
	videos   []video
	err      error
	cacheErr error
	pending  []string
	cache    *durationCache
	tagErr   error
}

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
}

type tagsSavedMsg struct {
	path string
	tags []string
	err  error
}