|
@@ -15,10 +15,11 @@ type platform struct {
|
|
|
UrlTask string `yaml:"url-task"`
|
|
|
}
|
|
|
|
|
|
-type host struct {
|
|
|
- Name string `yaml:"name"`
|
|
|
- Ip string `yaml:"ip"`
|
|
|
- Topics []string `yaml:"topics"`
|
|
|
+type hostStruct struct {
|
|
|
+ Name string `yaml:"name"`
|
|
|
+ Ip string `yaml:"ip"`
|
|
|
+ Topics []string `yaml:"topics"`
|
|
|
+ RecordEnvs []string `yaml:"record-envs"`
|
|
|
}
|
|
|
type ros struct {
|
|
|
MasterAddress string `yaml:"master-address"`
|
|
@@ -34,22 +35,21 @@ type trigger struct {
|
|
|
Topics []string `yaml:"topics"`
|
|
|
}
|
|
|
type cloudConfig struct {
|
|
|
- FullCollect bool `yaml:"full-collect"`
|
|
|
- ConfigRefreshInterval int `yaml:"config-refresh-interval"` // 配置刷新时间间隔
|
|
|
- BagNumber int `yaml:"bag-number"`
|
|
|
- TimeWindowSendGap int `yaml:"time-window-send-gap"` // 主节点向从节点发送窗口的最小时间间隔
|
|
|
- TimeToLabelJsonPath string `yaml:"time-to-label-json-path"`
|
|
|
- BagDataDir string `yaml:"bag-data-dir"`
|
|
|
- BagCopyDir string `yaml:"bag-copy-dir"`
|
|
|
- TriggersDir string `yaml:"triggers-dir"`
|
|
|
- TcpPort string `yaml:"tcp-port"`
|
|
|
- RpcPort string `yaml:"rpc-port"`
|
|
|
- RecordEnvs []string `yaml:"record-envs"`
|
|
|
- Triggers []trigger `yaml:"triggers"`
|
|
|
- Hosts []host `yaml:"hosts"`
|
|
|
- Ros ros `yaml:"ros"`
|
|
|
- Platform platform `yaml:"platform"`
|
|
|
- Disk disk `yaml:"disk"`
|
|
|
+ FullCollect bool `yaml:"full-collect"`
|
|
|
+ ConfigRefreshInterval int `yaml:"config-refresh-interval"` // 配置刷新时间间隔
|
|
|
+ BagNumber int `yaml:"bag-number"`
|
|
|
+ TimeWindowSendGap int `yaml:"time-window-send-gap"` // 主节点向从节点发送窗口的最小时间间隔
|
|
|
+ TimeToLabelJsonPath string `yaml:"time-to-label-json-path"`
|
|
|
+ BagDataDir string `yaml:"bag-data-dir"`
|
|
|
+ BagCopyDir string `yaml:"bag-copy-dir"`
|
|
|
+ TriggersDir string `yaml:"triggers-dir"`
|
|
|
+ TcpPort string `yaml:"tcp-port"`
|
|
|
+ RpcPort string `yaml:"rpc-port"`
|
|
|
+ Triggers []trigger `yaml:"triggers"`
|
|
|
+ Hosts []hostStruct `yaml:"hosts"`
|
|
|
+ Ros ros `yaml:"ros"`
|
|
|
+ Platform platform `yaml:"platform"`
|
|
|
+ Disk disk `yaml:"disk"`
|
|
|
}
|
|
|
|
|
|
var (
|