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:
parent
09b475dd61
commit
85923b4469
3 changed files with 20 additions and 13 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue