init commit
This commit is contained in:
29
internal/app/messages.go
Normal file
29
internal/app/messages.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package app
|
||||
|
||||
import "time"
|
||||
|
||||
// TickMsg is sent periodically to update playback position
|
||||
type TickMsg time.Time
|
||||
|
||||
// WaveformLoadedMsg is sent when waveform data is ready
|
||||
type WaveformLoadedMsg struct {
|
||||
Samples []float64
|
||||
Err error
|
||||
}
|
||||
|
||||
// ErrorMsg represents an error
|
||||
type ErrorMsg struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
// SavedMsg is sent when transcript is saved
|
||||
type SavedMsg struct {
|
||||
Path string
|
||||
Err error
|
||||
}
|
||||
|
||||
// VimExitedMsg is sent when vim finishes editing
|
||||
type VimExitedMsg struct {
|
||||
Path string
|
||||
Err error
|
||||
}
|
||||
Reference in New Issue
Block a user