Sebastian Mark
1a47c0607b
- add ProtocolVersion variable to metadata package
- don't set `ServerMessage.ProtocolVersion` in `main`
- update `ServerMessage` default to include ProtocolVersion
🤖
18 lines
422 B
Go
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
|