Extend Management to support peer changes distribution (#55)

* feature: add peer sync and a server public key endpoints
* test: add Management.Sync() gRpc endpoint test
* feat: implement peer sync
* docs: added some comments to the Management server
* chore: use for loop over channel when monitoring peer updates
* fix: exit infinite loop when sending updates to peers
* test: add multiple concurrent peers test for management service
* chore: remove unused test
* fix: reduce the amount peers for a concurrent peer update test

Co-authored-by: braginini <m.bragin@wiretrustee.com>
This commit is contained in:
Mikhail Bragin
2021-07-22 10:28:00 +02:00
committed by GitHub
parent d27eb317aa
commit 079d35eada
12 changed files with 974 additions and 121 deletions

View File

@@ -7,14 +7,7 @@
"Key": "a2c8e62b-38f5-4553-b31e-dd66c696cebb"
}
},
"Peers": {
"/znMkP3yvi0T/ho+RSMBohXZSPtucVYnb66BcuJ5oRU=": {
"Key": "/znMkP3yvi0T/ho+RSMBohXZSPtucVYnb66BcuJ5oRU=",
"SetupKey": {
"Key": "a2c8e62b-38f5-4553-b31e-dd66c696cebb"
}
}
}
"Peers": {}
}
}
}