Sebastian Mark
f991ba885d
- introduce password flag in server command line options - update clientCommand model - add password requirement for controlling the Pomodoro timer - document password in README
20 lines
338 B
Go
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
|