Issue 511 - Fix config names, config file indentation.

This commit is contained in:
Mayuresh Nirhali
2025-09-17 22:50:02 +05:30
parent 5bbd6f3a3c
commit 979763b5ec
3 changed files with 41 additions and 17 deletions

View File

@@ -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:

View File

@@ -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:
@@ -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:
@@ -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:
@@ -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:

View File

@@ -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.