2024-10-21 09:20:58 +02:00
|
|
|
package shared
|
|
|
|
|
|
|
|
import (
|
2024-10-27 22:46:58 +01:00
|
|
|
"git.smsvc.net/pomodoro/GoTomato/internal/metadata"
|
2024-10-21 09:20:58 +02:00
|
|
|
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
|
|
)
|
|
|
|
|
2024-10-30 07:37:14 +01:00
|
|
|
// The global state of the pomodoro
|
2024-10-29 18:46:00 +01:00
|
|
|
var State = models.ServerMessage{
|
2024-10-27 22:46:58 +01:00
|
|
|
Mode: "Idle",
|
|
|
|
Settings: DefaultPomodoroConfig,
|
|
|
|
Session: 0,
|
2024-11-18 08:11:39 +01:00
|
|
|
TimeLeft: DefaultPomodoroConfig.Focus,
|
2024-10-27 22:46:58 +01:00
|
|
|
Ongoing: false,
|
|
|
|
Paused: false,
|
|
|
|
ProtocolVersion: metadata.ProtocolVersion,
|
2024-10-21 09:20:58 +02:00
|
|
|
}
|
2024-10-21 15:36:26 +02:00
|
|
|
|
2024-10-30 07:37:14 +01:00
|
|
|
// The password needed to execute client commands or change the pomodoro config
|
2024-10-21 15:36:26 +02:00
|
|
|
var PomodoroPassword string
|