feat: add comments for configuration fields
- add documentation comments for
- GoTomatoTimerConfig
- GoTomatoServerConfig
🤖
This commit is contained in:
parent
45c527cc79
commit
d0e1162726
1 changed files with 6 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
||||||
package models
|
package models
|
||||||
|
|
||||||
type GoTomatoTimerConfig struct {
|
type GoTomatoTimerConfig struct {
|
||||||
Work int `json:"work"`
|
Work int `json:"work"` // Length of work sessions in seconds
|
||||||
ShortBreak int `json:"shortBreak"`
|
ShortBreak int `json:"shortBreak"` // Length of short break in seconds
|
||||||
LongBreak int `json:"longBreak"`
|
LongBreak int `json:"longBreak"` // Length if ling break in seconds
|
||||||
Sessions int `json:"sessions"`
|
Sessions int `json:"sessions"` // Number of total sessions
|
||||||
}
|
}
|
||||||
|
|
||||||
type GoTomatoServerConfig struct {
|
type GoTomatoServerConfig struct {
|
||||||
ListenAddress string `json:"listenAddress"`
|
ListenAddress string `json:"listenAddress"` // Server listen address
|
||||||
ListenPort int `json:"listenPort"`
|
ListenPort int `json:"listenPort"` // Server listen port
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue