Make registrarc hosts as slice

This commit is contained in:
andronache
2021-06-15 16:06:38 +03:00
committed by Dan Christian Bogos
parent b5ae57e8ec
commit d208a0dbed
7 changed files with 50 additions and 20 deletions

View File

@@ -975,13 +975,13 @@
// "rpc":{
// "enabled": false,
// "registrars_conns": [],
// "hosts": {},
// "hosts": [],
// "refresh_interval": "5m",
// },
// "dispatchers":{
// "enabled": false,
// "registrars_conns": [],
// "hosts": {},
// "hosts": [],
// "refresh_interval": "5m",
// },
// },

View File

@@ -108,9 +108,14 @@
"dispatchers":{
"enabled": true,
"registrars_conns": ["dispConn"],
"hosts": {
"*default":[{"ID":"ALL2", "transport": "*json", "tls": false}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"ALL2",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
}

View File

@@ -106,9 +106,14 @@
"dispatchers":{
"enabled": true,
"registrars_conns": ["dispConn"],
"hosts": {
"*default":[{"ID":"ALL2", "transport": "*json", "tls": false}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"ALL2",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
}

View File

@@ -112,9 +112,14 @@
"dispatchers":{
"enabled": true,
"registrars_conns": ["dispConn"],
"hosts": {
"*default":[{"ID":"ALL2", "transport": "*json", "tls": false}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"ALL2",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
}

View File

@@ -110,9 +110,14 @@
"dispatchers":{
"enabled": true,
"registrars_conns": ["dispConn"],
"hosts": {
"*default":[{"ID":"ALL2", "transport": "*json", "tls": false}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"ALL2",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
}

View File

@@ -146,9 +146,14 @@
"rpc":{
"enabled": true,
"registrars_conns": ["regConn"],
"hosts": {
"*default":[{"ID":"attributes", "transport": "*json"}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"attributes",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
},

View File

@@ -143,9 +143,14 @@
"rpc":{
"enabled": true,
"registrars_conns": ["regConn"],
"hosts": {
"*default":[{"ID":"attributes", "transport": "*json"}]
},
"hosts": [
{
"Tenant": "*default",
"ID":"attributes",
"transport": "*json",
"tls": false
},
],
"refresh_interval": "1s",
},
},