dispatcher

This commit is contained in:
2023-11-27 13:09:41 +01:00
parent 7262592576
commit a1fbdb7677
4 changed files with 62 additions and 24 deletions

View File

@ -7,20 +7,20 @@ import "os"
type ConfigT struct {
Mqtt struct {
Broker string
Username string
Password string
TlsEnable string
}
Broker string `json:"broker"`
Username string `json:"username"`
Password string `json:"password"`
TlsEnable string `json:"tlsEnable"`
} `json:"mqtt"`
TopicMappings []struct {
Topics []string
Plugin string
}
Topics []string `json:topics`
Plugin string `json:plugin`
} `json:"TopicMappings"`
Plugins []struct {
Name string
DatabaseConnStr string
Attributes map[string]interface{}
}
Name string `json:"name"`
DatabaseConnStr string `json:"databaseConnStr"`
Attributes map[string]string `json:"attributes"`
} `json:"plugins"`
}
var Config ConfigT