[#11] Use gRPC handlers in neofs-node application

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-22 14:03:45 +03:00 committed by Alex Vanin
parent c2954aab20
commit 65eb1181e9
3 changed files with 87 additions and 57 deletions

View file

@ -1,11 +1,22 @@
package main
import (
"context"
"sync"
)
type cfg struct {
ctx context.Context
wg *sync.WaitGroup
grpcAddr string
}
func defaultCfg() *cfg {
return &cfg{
grpcAddr: ":50501",
ctx: context.Background(),
wg: new(sync.WaitGroup),
grpcAddr: "127.0.0.1:50501",
}
}