doc: add and improve comments
This commit is contained in:
parent
d83acc77b2
commit
d0b1260f62
12 changed files with 50 additions and 26 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue