add store

This commit is contained in:
A.Unger
2021-03-04 14:03:06 +01:00
parent e25f5b1c98
commit 3c770dd118
7 changed files with 45 additions and 16 deletions
+2 -2
View File
@@ -109,14 +109,14 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error {
return nil
}
// SutureService allows for the onlyoffice command to be embedded and supervised by a suture supervisor tree.
// SutureService allows for the proxy command to be embedded and supervised by a suture supervisor tree.
type SutureService struct {
ctx context.Context
cancel context.CancelFunc // used to cancel the context go-micro services used to shutdown a service.
cfg *config.Config
}
// NewSutureService creates a new onlyoffice.SutureService
// NewSutureService creates a new proxy.SutureService
func NewSutureService(ctx context.Context, cfg *config.Config) SutureService {
sctx, cancel := context.WithCancel(ctx)
cfg.Context = sctx // propagate the context down to the go-micro services.