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