feat: refactor shared.Message to a channel
- remove `shared` package and shared.Message - rename `notifications` package to `frontend` - introduce a channel send the received ServerMessages to the frontend handler(s) - move keyhandler to goroutine - simplify password handling in Start function - update import names when importing from GoTomoto
This commit is contained in:
parent
cc24dd6775
commit
bbc9977f1c
10 changed files with 108 additions and 82 deletions
|
@ -1,11 +1,11 @@
|
|||
package models
|
||||
|
||||
import (
|
||||
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||
)
|
||||
|
||||
type ConfigFile struct {
|
||||
URL string `yaml:"url"`
|
||||
Password string `yaml:"password"`
|
||||
PomodoroConfig models.GoTomatoPomodoroConfig `yaml:"config"`
|
||||
type Config struct {
|
||||
URL string `yaml:"url"`
|
||||
Password string `yaml:"password"`
|
||||
PomodoroConfig GoTomato.GoTomatoPomodoroConfig `yaml:"config"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue