GoTomato/pkg/models/config.go
Sebastian Mark 85923b4469 feat: create model for pomodoro settings
- introduce GoTomatoTimerConfig
- create instance variable with current config
- update code to use the new variable
2024-10-20 14:45:18 +02:00

13 lines
312 B
Go

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"`
}