Use go module as dependency tool instead of glide
[src/xds/xds-agent.git] / lib / xdsconfig / configfile.go
index 009517f..7ddb010 100644 (file)
@@ -22,7 +22,7 @@ import (
        "os"
        "path"
 
-       common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git/golib"
+       common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git"
 )
 
 type SyncThingConf struct {
@@ -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.