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 }