Sebastian Mark
bf2685a055
- replace manual state reset with a dedicated ResetToDefault function
- remove locking mechanism during state updates
🤖
18 lines
309 B
Go
18 lines
309 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,
|
|
}
|
|
}
|