From ffc994126b1349930a20941357b3f97d2c0cfc2f Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sat, 26 Oct 2024 09:22:21 +0200 Subject: [PATCH] break: rename `GoTomatoServerConfig` -> `ServerConfig` --- cmd/server/main.go | 2 +- internal/shared/configDefaults.go | 2 +- pkg/models/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index f78b256..5d0b3a0 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -28,7 +28,7 @@ func Start() { os.Exit(0) } - serverConfig := models.GoTomatoServerConfig{ + serverConfig := models.ServerConfig{ ListenAddress: *listenAddress, ListenPort: *listenPort, } diff --git a/internal/shared/configDefaults.go b/internal/shared/configDefaults.go index f274555..a3840e0 100644 --- a/internal/shared/configDefaults.go +++ b/internal/shared/configDefaults.go @@ -4,7 +4,7 @@ import ( "git.smsvc.net/pomodoro/GoTomato/pkg/models" ) -var DefaultServerConfig = models.GoTomatoServerConfig{ +var DefaultServerConfig = models.ServerConfig{ ListenAddress: "0.0.0.0", ListenPort: 8080, } diff --git a/pkg/models/config.go b/pkg/models/config.go index b9d66c7..50c7923 100644 --- a/pkg/models/config.go +++ b/pkg/models/config.go @@ -7,7 +7,7 @@ type PomodoroConfig struct { Sessions int `json:"sessions"` // Number of total sessions } -type GoTomatoServerConfig struct { +type ServerConfig struct { ListenAddress string `json:"listenAddress"` // Server listen address ListenPort int `json:"listenPort"` // Server listen port }