handler stuff

This commit is contained in:
2023-11-27 15:21:28 +01:00
parent a1fbdb7677
commit a862b4bc2d
5 changed files with 55 additions and 5 deletions

View File

@ -14,13 +14,13 @@ type ConfigT struct {
} `json:"mqtt"`
TopicMappings []struct {
Topics []string `json:topics`
Plugin string `json:plugin`
Handler string `json:handler`
} `json:"TopicMappings"`
Plugins []struct {
Handlers []struct {
Name string `json:"name"`
DatabaseConnStr string `json:"databaseConnStr"`
Attributes map[string]string `json:"attributes"`
} `json:"plugins"`
} `json:"handlers"`
}
var Config ConfigT