Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use go module as dependency tool instead of glide
[src/xds/xds-agent.git]
/
lib
/
xdsconfig
/
configfile.go
diff --git
a/lib/xdsconfig/configfile.go
b/lib/xdsconfig/configfile.go
index
009517f
..
7ddb010
100644
(file)
--- a/
lib/xdsconfig/configfile.go
+++ b/
lib/xdsconfig/configfile.go
@@
-22,7
+22,7
@@
import (
"os"
"path"
"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 {
)
type SyncThingConf struct {
@@
-43,6
+43,15
@@
type XDSServerConf struct {
APIPartialURL string `json:"-"`
}
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"`
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"`
XDSAPIKey string `json:"xds-apikey"`
ServersConf []XDSServerConf `json:"xdsServers"`
SThgConf *SyncThingConf `json:"syncthing"`
+ ProfileConf ProfileConfT `json:"profileConf"`
}
// readGlobalConfig reads configuration from a config file.
}
// readGlobalConfig reads configuration from a config file.