From 7c7d90a781082c6bd22d12a5e2451ca61a5198af Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 29 Nov 2017 11:19:00 +0100 Subject: Renamed apiv1 lib to xaapiv1. xa prefix (for Xds Agent) is safest to avoid confusion with xs prefix (for Xds Server) Signed-off-by: Sebastien Douheret --- lib/xaapiv1/config.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/xaapiv1/config.go (limited to 'lib/xaapiv1/config.go') diff --git a/lib/xaapiv1/config.go b/lib/xaapiv1/config.go new file mode 100644 index 0000000..ae853dd --- /dev/null +++ b/lib/xaapiv1/config.go @@ -0,0 +1,22 @@ +package xaapiv1 + +// APIConfig parameters (json format) of /config command +type APIConfig struct { + Servers []ServerCfg `json:"servers"` + + // Not exposed outside in JSON + Version string `json:"-"` + APIVersion string `json:"-"` + VersionGitTag string `json:"-"` +} + +// ServerCfg . +type ServerCfg struct { + ID string `json:"id"` + URL string `json:"url"` + APIURL string `json:"apiUrl"` + PartialURL string `json:"partialUrl"` + ConnRetry int `json:"connRetry"` + Connected bool `json:"connected"` + Disabled bool `json:"disabled"` +} -- cgit 1.2.3-korg