dispatcher
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user