GoTomato/pkg/models/config.go

16 lines
580 B
Go
Raw Normal View History

package models
2024-10-30 06:37:14 +00:00
// Represents the configuration of a pomodoro
type PomodoroConfig struct {
Work int `json:"work"` // Length of work sessions in seconds
ShortBreak int `json:"shortBreak"` // Length of short break in seconds
2024-10-30 06:37:14 +00:00
LongBreak int `json:"longBreak"` // Length of long break in seconds
Sessions int `json:"sessions"` // Number of total sessions
}
2024-10-30 06:37:14 +00:00
// Represents the server configuration
type ServerConfig struct {
ListenAddress string `json:"listenAddress"` // Server listen address
ListenPort int `json:"listenPort"` // Server listen port
}