Added Supervision/Monitoring support
[src/xds/xds-agent.git] / lib / xdsconfig / configfile.go
index 009517f..1390456 100644 (file)
@@ -43,6 +43,15 @@ type XDSServerConf struct {
        APIPartialURL string `json:"-"`
 }
 
+type XDSBinderConf struct {
+       URL       string `json:"url"`
+       ConnRetry int    `json:"connRetry"`
+}
+
+type ProfileConfT struct {
+       XDSBinder XDSBinderConf `json:"xdsBinder"`
+}
+
 type FileConfig struct {
        HTTPPort    string          `json:"httpPort"`
        WebAppDir   string          `json:"webAppDir"`
@@ -50,6 +59,7 @@ type FileConfig struct {
        XDSAPIKey   string          `json:"xds-apikey"`
        ServersConf []XDSServerConf `json:"xdsServers"`
        SThgConf    *SyncThingConf  `json:"syncthing"`
+       ProfileConf ProfileConfT    `json:"profileConf"`
 }
 
 // readGlobalConfig reads configuration from a config file.