A Pomodoro Server
Sebastian Mark
4471c86a0c
- 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
🤖
|
||
---|---|---|
cmd/server | ||
internal | ||
pkg/models | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
GoTomato.go | ||
index.html | ||
README.md |
GoTomato
A pomodoro server written in Go
Installation
go install git.smsvc.net/pomodoro/GoTomato@latest
Testing
docker run --rm -d --name pomodoro-client -v $PWD:/usr/share/nginx/html/ -p 8081:80 nginx
go run .