2022-10-18 16:58:12 +02:00
|
|
|
package screen
|
|
|
|
|
|
|
|
import "fyne.io/fyne/v2"
|
|
|
|
|
2022-10-20 10:40:46 +02:00
|
|
|
type Task struct {
|
|
|
|
ID string
|
|
|
|
Action string
|
|
|
|
}
|
|
|
|
|
2022-10-18 16:58:12 +02:00
|
|
|
type State struct {
|
|
|
|
Status string
|
2022-10-20 10:40:46 +02:00
|
|
|
Tasks []Task
|
2022-10-18 16:58:12 +02:00
|
|
|
Config map[string]string
|
|
|
|
Logs []string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Screen interface {
|
|
|
|
Content() fyne.CanvasObject
|
|
|
|
Refresh(state State)
|
|
|
|
}
|