package MYX import "goUpload/config" type ConfigFile struct { config.Consumer IOConfig UserConfig `json:"ioConfig"` Sensors sensorConfig `json:"sensors"` } type UserConfig struct { InMqtt config.MqttConfig `json:"inMqtt"` InFileMonitor config.FileMonitorConfig `json:"inFile"` OutHttpPost config.HttpConfig `json:"outHttp"` } type sensorConfig struct { TYCJsensorNameMap map[string]string `json:"TYCJsensorNameMap"` ZDsensorMCMap map[string]string `json:"ZDsensorM-CMap"` GDGSsensorNameMap []GDGSsensorNameMap `json:"GDGSsensorNameMap"` } //gdgsSensorNameMap type GDGSsensorNameMap struct { Type string `json:"type"` Map map[string]SensorInfo `json:"map"` Formula string `json:"formula,omitempty"` } type SensorInfo struct { Label string `json:"Label"` Params map[string]float64 `json:"params,omitempty"` } // CHInfo 光电光栅的通道的对应信息 type CHInfo struct { SensorInfo Type string Formula string }