GoTomato/internal/shared/configDefaults.go
Sebastian Mark a9d145ee71 feat: create shared config defaults
- add shared configuration defaults for server and pomodoro

🤖
2024-10-21 13:07:19 +02:00

20 lines
426 B
Go

package shared
import (
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
var DefaultServerConfig = models.GoTomatoServerConfig{
ListenAddress: "0.0.0.0",
ListenPort: 8080,
}
var DefaultPomodoroConfig = models.GoTomatoPomodoroConfig{
Work: 25 * 60,
ShortBreak: 5 * 60,
LongBreak: 15 * 60,
Sessions: 4,
}
// used to check if client passed a config json
var UnsetPomodoroConfig models.GoTomatoPomodoroConfig