2024-04-26 10:01:46 +02:00
|
|
|
package backend
|
|
|
|
|
2024-04-26 15:10:38 +02:00
|
|
|
import (
|
2024-09-17 07:43:12 +02:00
|
|
|
"go-mod.ewintr.nl/emdb/storage"
|
2024-04-26 15:10:38 +02:00
|
|
|
)
|
2024-04-26 10:01:46 +02:00
|
|
|
|
|
|
|
type State struct {
|
2024-04-26 15:10:38 +02:00
|
|
|
Watched []storage.Movie
|
|
|
|
Log []string
|
2024-04-26 10:01:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewState() *State {
|
|
|
|
return &State{
|
2024-04-26 15:10:38 +02:00
|
|
|
Watched: make([]storage.Movie, 0),
|
|
|
|
Log: make([]string, 0),
|
2024-04-26 10:01:46 +02:00
|
|
|
}
|
|
|
|
}
|