5c08a9b184
break: update ServerMessage model
...
- rename MaxSession to TotalSession (and JSON struct tags)
🤖
2024-10-20 23:20:23 +02:00
52634ed226
feat: allow clients to send pomodoro config
...
- allow clients to send custom configuration for pomodoro sessions
- update RunPomodoro to accept a configuration parameter
- modify startTimer to handle session count from config
- add default pomodoro configuration in client command handling
🤖
2024-10-20 23:18:35 +02:00
9149b1a78e
refactor: rename GoTomatoTimerConfig to GoTomatoPomodoroConfig
...
🤖
2024-10-20 22:18:50 +02:00
337e5b0ed3
refactor: rename BroadcastMessage model to ServerMessage
...
🤖
2024-10-20 21:59:18 +02:00
d0e1162726
feat: add comments for configuration fields
...
- add documentation comments for
- GoTomatoTimerConfig
- GoTomatoServerConfig
🤖
2024-10-20 20:49:36 +02:00
45c527cc79
fix: remove default values from GoTomatoServerConfig model
2024-10-20 20:09:34 +02:00
0b2f83cd35
feat: add CLI flags to app
...
- implement command-line flags for listen address and port
- add usage section to README
🤖
2024-10-20 14:55:02 +02:00
85923b4469
feat: create model for pomodoro settings
...
- introduce GoTomatoTimerConfig
- create instance variable with current config
- update code to use the new variable
2024-10-20 14:45:18 +02:00
09b475dd61
feat: create model for server config
...
- introduce GoTomatoServerConfig
- create instance variable with the current config
- update server to use configurable listen address and port
🤖
2024-10-20 14:45:13 +02:00
4471c86a0c
fix: prevent concurrent write to websocket connection
...
- refactor client handling and message broadcasting
- replace Client struct
- implement SendMessage method in Client struct for safer message sending
- update client map to use *models.Client instead of bool
- adjust BroadcastMessage and RunPomodoroTimer functions to use new client type
🤖
2024-10-20 11:06:37 +02:00
c59f737eb7
feat(server): restructure Pomodoro server into modular components
...
- move server logic to cmd/server/main.go
- create packages for websocket, pomodoro and broadcast handling
- define models for messages
- remove old GoTomato.go file
- update README
🤖
2024-10-19 16:49:09 +02:00