update Config structure and add node name parameter

This commit is contained in:
2025-07-31 21:30:59 +03:00
parent a5a7354061
commit 45e541ac00
6 changed files with 19 additions and 11 deletions

View File

@@ -18,8 +18,7 @@ type Compositor struct {
}
type Conf struct {
Mode *string `mapstructure:"mode"`
ComDir *string `mapstructure:"com_dir"`
Node *Node `mapstructure:"node"`
HTTPServer *HTTPServer `mapstructure:"http_server"`
TLS *TLS `mapstructure:"tls"`
Updates *Updates `mapstructure:"updates"`
@@ -27,6 +26,12 @@ type Conf struct {
DisableWarnings *[]string `mapstructure:"disable_warnings"`
}
type Node struct {
Mode *string `mapstructure:"mode"`
Name *string `mapstructure:"name"`
ComDir *string `mapstructure:"com_dir"`
}
type HTTPServer struct {
Address *string `mapstructure:"address"`
Port *string `mapstructure:"port"`