feat: create model for pomodoro settings

- introduce GoTomatoTimerConfig
- create instance variable with current config
- update code to use the new variable
This commit is contained in:
Sebastian Mark 2024-10-20 14:42:50 +02:00
parent 09b475dd61
commit 85923b4469
3 changed files with 20 additions and 13 deletions

View file

@ -1,5 +1,12 @@
package models
type GoTomatoTimerConfig struct {
Work int `json:"work"`
ShortBreak int `json:"shortBreak"`
LongBreak int `json:"longBreak"`
Sessions int `json:"sessions"`
}
type GoTomatoServerConfig struct {
ListenAddress string `json:"listenAddress"`
ListenPort int `json:"listenPort"`