GoTomato/internal/shared/state.go
Sebastian Mark f991ba885d feat: allow restrict Pomodoro via password
- introduce password flag in server command line options
- update clientCommand model
- add password requirement for controlling the Pomodoro timer
- document password in README
2024-10-21 17:29:04 +02:00

20 lines
338 B
Go

package shared
import (
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
var Message = ResetToDefault()
func ResetToDefault() models.ServerMessage {
return models.ServerMessage{
Mode: "",
Session: 0,
TotalSession: 0,
TimeLeft: 0,
Ongoing: false,
Paused: false,
}
}
var PomodoroPassword string