Fixed server implementation and refactored

This commit is contained in:
David Allen 2024-06-20 17:09:02 -06:00
parent 0e3eec733b
commit 22195fa00a
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
8 changed files with 289 additions and 215 deletions

View file

@ -27,7 +27,7 @@ type Config struct {
SmdClient SmdClient `yaml:"smd"`
AccessToken string `yaml:"access-token"`
TemplatePaths map[string]string `yaml:"templates"`
Plugins []string `yaml:"plugins"`
PluginDirs []string `yaml:"plugins"`
Options Options `yaml:"options"`
}
@ -45,7 +45,7 @@ func NewConfig() Config {
"powerman": "templates/powerman.jinja",
"conman": "templates/conman.jinja",
},
Plugins: []string{},
PluginDirs: []string{},
Server: Server{
Host: "127.0.0.1",
Port: 3334,