Issue 511 - Fix config names, config file indentation.
This commit is contained in:
@@ -22,8 +22,14 @@ modules:
|
|||||||
handler:
|
handler:
|
||||||
type: std
|
type: std
|
||||||
role: bap
|
role: bap
|
||||||
registryUrl: http://localhost:8080/reg
|
|
||||||
plugins:
|
plugins:
|
||||||
|
registry:
|
||||||
|
id: registry
|
||||||
|
config:
|
||||||
|
url: http://localhost:8080/reg
|
||||||
|
retry_max: "3"
|
||||||
|
retry_wait_min: "100ms"
|
||||||
|
retry_wait_max: "500ms"
|
||||||
keyManager:
|
keyManager:
|
||||||
id: keymanager
|
id: keymanager
|
||||||
config:
|
config:
|
||||||
@@ -59,8 +65,14 @@ modules:
|
|||||||
handler:
|
handler:
|
||||||
type: std
|
type: std
|
||||||
role: bap
|
role: bap
|
||||||
registryUrl: http://localhost:8080/reg
|
|
||||||
plugins:
|
plugins:
|
||||||
|
registry:
|
||||||
|
id: registry
|
||||||
|
config:
|
||||||
|
url: http://localhost:8080/reg
|
||||||
|
retry_max: "3"
|
||||||
|
retry_wait_min: "100ms"
|
||||||
|
retry_wait_max: "500ms"
|
||||||
keyManager:
|
keyManager:
|
||||||
id: keymanager
|
id: keymanager
|
||||||
config:
|
config:
|
||||||
@@ -92,8 +104,14 @@ modules:
|
|||||||
handler:
|
handler:
|
||||||
type: std
|
type: std
|
||||||
role: bpp
|
role: bpp
|
||||||
registryUrl: http://localhost:8080/reg
|
|
||||||
plugins:
|
plugins:
|
||||||
|
registry:
|
||||||
|
id: registry
|
||||||
|
config:
|
||||||
|
url: http://localhost:8080/reg
|
||||||
|
retry_max: "3"
|
||||||
|
retry_wait_min: "100ms"
|
||||||
|
retry_wait_max: "500ms"
|
||||||
keyManager:
|
keyManager:
|
||||||
id: keymanager
|
id: keymanager
|
||||||
config:
|
config:
|
||||||
@@ -125,8 +143,14 @@ modules:
|
|||||||
handler:
|
handler:
|
||||||
type: std
|
type: std
|
||||||
role: bpp
|
role: bpp
|
||||||
registryUrl: http://localhost:8080/reg
|
|
||||||
plugins:
|
plugins:
|
||||||
|
registry:
|
||||||
|
id: registry
|
||||||
|
config:
|
||||||
|
url: http://localhost:8080/reg
|
||||||
|
retry_max: "3"
|
||||||
|
retry_wait_min: "100ms"
|
||||||
|
retry_wait_max: "500ms"
|
||||||
keyManager:
|
keyManager:
|
||||||
id: keymanager
|
id: keymanager
|
||||||
config:
|
config:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ modules:
|
|||||||
type: std
|
type: std
|
||||||
role: bap
|
role: bap
|
||||||
plugins:
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
url: http://registry:3030/subscribers
|
url: http://registry:3030/subscribers
|
||||||
@@ -42,7 +42,7 @@ modules:
|
|||||||
cache:
|
cache:
|
||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: localhost:6379
|
addr: redis:6379
|
||||||
schemaValidator:
|
schemaValidator:
|
||||||
id: schemavalidator
|
id: schemavalidator
|
||||||
config:
|
config:
|
||||||
@@ -68,7 +68,7 @@ modules:
|
|||||||
type: std
|
type: std
|
||||||
role: bap
|
role: bap
|
||||||
plugins:
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
url: http://registry:3030/subscribers
|
url: http://registry:3030/subscribers
|
||||||
@@ -87,7 +87,7 @@ modules:
|
|||||||
cache:
|
cache:
|
||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: localhost:6379
|
addr: redis:6379
|
||||||
router:
|
router:
|
||||||
id: router
|
id: router
|
||||||
config:
|
config:
|
||||||
@@ -109,7 +109,7 @@ modules:
|
|||||||
type: std
|
type: std
|
||||||
role: bpp
|
role: bpp
|
||||||
plugins:
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
url: http://registry:3030/subscribers
|
url: http://registry:3030/subscribers
|
||||||
@@ -128,7 +128,7 @@ modules:
|
|||||||
cache:
|
cache:
|
||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: localhost:6379
|
addr: redis:6379
|
||||||
schemaValidator:
|
schemaValidator:
|
||||||
id: schemavalidator
|
id: schemavalidator
|
||||||
config:
|
config:
|
||||||
@@ -148,7 +148,7 @@ modules:
|
|||||||
type: std
|
type: std
|
||||||
role: bpp
|
role: bpp
|
||||||
plugins:
|
plugins:
|
||||||
registry:
|
registry:
|
||||||
id: registry
|
id: registry
|
||||||
config:
|
config:
|
||||||
url: http://registry:3030/subscribers
|
url: http://registry:3030/subscribers
|
||||||
@@ -167,7 +167,7 @@ modules:
|
|||||||
cache:
|
cache:
|
||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: localhost:6379
|
addr: redis:6379
|
||||||
router:
|
router:
|
||||||
id: router
|
id: router
|
||||||
config:
|
config:
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ import (
|
|||||||
|
|
||||||
// Config holds configuration parameters for the registry client.
|
// Config holds configuration parameters for the registry client.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
URL string
|
URL string `yaml:"url" json:"url"`
|
||||||
RetryMax int
|
RetryMax int `yaml:"retry_max" json:"retry_max"`
|
||||||
RetryWaitMin time.Duration
|
RetryWaitMin time.Duration `yaml:"retry_wait_min" json:"retry_wait_min"`
|
||||||
RetryWaitMax time.Duration
|
RetryWaitMax time.Duration `yaml:"retry_wait_max" json:"retry_wait_max"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegistryClient encapsulates the logic for calling the registry endpoints.
|
// RegistryClient encapsulates the logic for calling the registry endpoints.
|
||||||
|
|||||||
Reference in New Issue
Block a user