update to new EndpointDescriptor

This commit is contained in:
Maxim Merzhanov committed 2020-01-16 17:48:58 +03:00
1 parent 97d3a38ed8
commit c8518e9f35
4 files changed
+14 -9

No files matched your search

Generated
+3 -3
View File
@@ -277,7 +277,7 @@
version = "v2.0.2"
[[projects]]
digest = "1:b6f5c19baa132c1bb51fa07430738948910b516326dc923febb8ba6e24b0f7dc"
digest = "1:194932f6894a42dd62acd1092c529befbe576abf50fe929a0e30ae3544ceb6ee"
name = "github.com/integration-system/isp-lib"
packages = [
"backend",
@@ -292,8 +292,8 @@
"utils",
]
pruneopts = "UT"
revision = "abfa9a9776d64e6d04d495bfe00db8ca4dcbe7fc"
version = "v2.0.1"
revision = "4ea9449f1b3f2565b9038b0d4cdda3b02089aa8c"
version = "v2.1.0"
[[projects]]
digest = "1:1562269205ab0c6685c8b0b99511e91b9d3627e4cac3f0288378bc8930e658f1"
+7 -5
View File
@@ -63,7 +63,7 @@ definitions:
type: object
endpoints:
items:
$ref: '#/definitions/structure.EndpointConfig'
$ref: '#/definitions/structure.EndpointDescriptor'
type: array
establishedAt:
type: string
@@ -610,7 +610,7 @@ definitions:
type: object
endpoints:
items:
$ref: '#/definitions/structure.EndpointConfig'
$ref: '#/definitions/structure.EndpointDescriptor'
type: array
libVersion:
type: string
@@ -619,14 +619,16 @@ definitions:
version:
type: string
type: object
structure.EndpointConfig:
structure.EndpointDescriptor:
properties:
ignoreOnRouter:
type: boolean
extra:
type: object
inner:
type: boolean
path:
type: string
userAuthRequired:
type: boolean
required:
- path
type: object
+1 -1
View File
@@ -27,7 +27,7 @@ type Connection struct {
LibVersion string
Version string
Address structure.AddressConfiguration
Endpoints []structure.EndpointConfig `json:",omitempty"`
Endpoints []structure.EndpointDescriptor `json:",omitempty"`
EstablishedAt time.Time
}
+3
View File
@@ -57,6 +57,9 @@ func init() {
// @host localhost:9003
// @BasePath /api/config
//go:generate swag init --parseVendor
//go:generate rm -f docs/docs.go docs/swagger.json
func main() {
ctx := context.Background()
cfg := config.Get().(*conf.Configuration)