feat: create model for server config

- introduce GoTomatoServerConfig
- create instance variable with the current config
- update server to use configurable listen address and port

🤖
This commit is contained in:
Sebastian Mark 2024-10-20 14:31:52 +02:00
parent 3d5cb29c54
commit 09b475dd61
2 changed files with 17 additions and 2 deletions

6
pkg/models/config.go Normal file
View file

@ -0,0 +1,6 @@
package models
type GoTomatoServerConfig struct {
ListenAddress string `json:"listenAddress"`
ListenPort int `json:"listenPort"`
}