GoTomato/internal/shared/state.go
Sebastian Mark f0d7dc80fc feat: update protocol version handling
- add ProtocolVersion variable to metadata package
- don't set `ServerMessage.ProtocolVersion` in `main`
- update `ServerMessage` default to include ProtocolVersion

🤖
2024-10-29 11:05:44 +01:00

18 lines
422 B
Go

package shared
import (
"git.smsvc.net/pomodoro/GoTomato/internal/metadata"
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
var Message = models.ServerMessage{
Mode: "Idle",
Settings: DefaultPomodoroConfig,
Session: 0,
TimeLeft: DefaultPomodoroConfig.Work,
Ongoing: false,
Paused: false,
ProtocolVersion: metadata.ProtocolVersion,
}
var PomodoroPassword string