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:
parent
3d5cb29c54
commit
09b475dd61
2 changed files with 17 additions and 2 deletions
6
pkg/models/config.go
Normal file
6
pkg/models/config.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package models
|
||||
|
||||
type GoTomatoServerConfig struct {
|
||||
ListenAddress string `json:"listenAddress"`
|
||||
ListenPort int `json:"listenPort"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue