Sebastian Mark
a0dba673a2
- add explicit server messages for start and end
- include pomodoro setttings in server messages
- update README
🤖
11 lines
659 B
Go
11 lines
659 B
Go
package models
|
|
|
|
// ServerMessage represents the data sent to the client via WebSocket.
|
|
type ServerMessage struct {
|
|
Mode string `json:"mode"` // "Idle", "Work", "ShortBreak", "LongBreak" or "End"
|
|
PomodoroSettings GoTomatoPomodoroConfig `json:"settings"` // The currrent pomodoro settings
|
|
Session int `json:"session"` // Current session number
|
|
TimeLeft int `json:"time_left"` // Remaining time in seconds
|
|
Ongoing bool `json:"ongoing"` // Ongoing pomodoro
|
|
Paused bool `json:"paused"` // Is timer paused
|
|
}
|