doc: add and improve comments

This commit is contained in:
Sebastian Mark 2024-10-30 07:37:14 +01:00
parent d83acc77b2
commit d0b1260f62
12 changed files with 50 additions and 26 deletions

View file

@ -2,11 +2,13 @@ package shared
import "git.smsvc.net/pomodoro/GoTomato/pkg/models"
// The default server config if nothing else is set
var DefaultServerConfig = models.ServerConfig{
ListenAddress: "0.0.0.0",
ListenPort: 8080,
}
// The default pomodoro config if nothing else is set
var DefaultPomodoroConfig = models.PomodoroConfig{
Work: 25 * 60,
ShortBreak: 5 * 60,

View file

@ -5,6 +5,7 @@ import (
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
)
// The global state of the pomodoro
var State = models.ServerMessage{
Mode: "Idle",
Settings: DefaultPomodoroConfig,
@ -15,4 +16,5 @@ var State = models.ServerMessage{
ProtocolVersion: metadata.ProtocolVersion,
}
// The password needed to execute client commands or change the pomodoro config
var PomodoroPassword string