Sebastian Mark
85923b4469
- introduce GoTomatoTimerConfig - create instance variable with current config - update code to use the new variable
13 lines
312 B
Go
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"`
|
|
}
|