Sebastian Mark
0b2f83cd35
- implement command-line flags for listen address and port
- add usage section to README
🤖
13 lines
344 B
Go
13 lines
344 B
Go
package models
|
|
|
|
type GoTomatoTimerConfig struct {
|
|
Work int `json:"work"`
|
|
ShortBreak int `json:"shortBreak"`
|
|
LongBreak int `json:"longBreak"`
|
|
Sessions int `json:"sessions"`
|
|
}
|
|
|
|
type GoTomatoServerConfig struct {
|
|
ListenAddress string `json:"listenAddress, default:"0.0.0.0"`
|
|
ListenPort int `json:"listenPort, default:8080"`
|
|
}
|