aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xdsconfig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xdsconfig')
-rw-r--r--lib/xdsconfig/config.go8
-rw-r--r--lib/xdsconfig/configfile.go12
2 files changed, 15 insertions, 5 deletions
diff --git a/lib/xdsconfig/config.go b/lib/xdsconfig/config.go
index 93c8f4b..6a5e750 100644
--- a/lib/xdsconfig/config.go
+++ b/lib/xdsconfig/config.go
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017-2018 "IoT.bzh"
+ * Copyright (C) 2017-2019 "IoT.bzh"
* Author Sebastien Douheret <sebastien@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -92,10 +92,14 @@ func Init(ctx *cli.Context, log *logrus.Logger) (*Config, error) {
Home: defaultSTHomeDir,
},
ProfileConf: ProfileConfT{
- XDSBinder: XDSBinderConf{
+ XDSMonitoring: XDSMonitoringConf{
URL: "http://localhost:8810",
ConnRetry: 10,
},
+ XDSLowCollector: XDSLowCollectorConf{
+ URL: "http://localhost:8820",
+ ConnRetry: 10,
+ },
},
},
Log: log,
diff --git a/lib/xdsconfig/configfile.go b/lib/xdsconfig/configfile.go
index 7ddb010..85e26bc 100644
--- a/lib/xdsconfig/configfile.go
+++ b/lib/xdsconfig/configfile.go
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017-2018 "IoT.bzh"
+ * Copyright (C) 2017-2019 "IoT.bzh"
* Author Sebastien Douheret <sebastien@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -43,13 +43,19 @@ type XDSServerConf struct {
APIPartialURL string `json:"-"`
}
-type XDSBinderConf struct {
+type XDSMonitoringConf struct {
+ URL string `json:"url"`
+ ConnRetry int `json:"connRetry"`
+}
+
+type XDSLowCollectorConf struct {
URL string `json:"url"`
ConnRetry int `json:"connRetry"`
}
type ProfileConfT struct {
- XDSBinder XDSBinderConf `json:"xdsBinder"`
+ XDSMonitoring XDSMonitoringConf `json:"xdsMonitoring"`
+ XDSLowCollector XDSLowCollectorConf `json:"xdsLowCollector"`
}
type FileConfig struct {