[#311] services/control: Implement NetmapSnapshot method

Implement methods required for signatures. Receive network map from netmap
storage, convert it to Control service message and return in response.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-14 19:32:23 +03:00 committed by Alex Vanin
parent 28777911fb
commit 3e882d963f
4 changed files with 113 additions and 1 deletions

View file

@ -42,6 +42,7 @@ func initControlService(c *cfg) {
controlSvc.WithKey(c.key),
controlSvc.WithAuthorizedKeys(keys),
controlSvc.WithHealthChecker(c),
controlSvc.WithNetMapSource(c.cfgNetmap.wrapper),
)
var (