break: rename GoTomatoServerConfig -> ServerConfig

This commit is contained in:
Sebastian Mark 2024-10-26 09:22:21 +02:00
parent c20d36d2d2
commit ffc994126b
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ func Start() {
os.Exit(0) os.Exit(0)
} }
serverConfig := models.GoTomatoServerConfig{ serverConfig := models.ServerConfig{
ListenAddress: *listenAddress, ListenAddress: *listenAddress,
ListenPort: *listenPort, ListenPort: *listenPort,
} }

View file

@ -4,7 +4,7 @@ import (
"git.smsvc.net/pomodoro/GoTomato/pkg/models" "git.smsvc.net/pomodoro/GoTomato/pkg/models"
) )
var DefaultServerConfig = models.GoTomatoServerConfig{ var DefaultServerConfig = models.ServerConfig{
ListenAddress: "0.0.0.0", ListenAddress: "0.0.0.0",
ListenPort: 8080, ListenPort: 8080,
} }

View file

@ -7,7 +7,7 @@ type PomodoroConfig struct {
Sessions int `json:"sessions"` // Number of total sessions Sessions int `json:"sessions"` // Number of total sessions
} }
type GoTomatoServerConfig struct { type ServerConfig struct {
ListenAddress string `json:"listenAddress"` // Server listen address ListenAddress string `json:"listenAddress"` // Server listen address
ListenPort int `json:"listenPort"` // Server listen port ListenPort int `json:"listenPort"` // Server listen port
} }