add remaining services

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2021-03-09 16:03:47 +00:00
parent 29910838c1
commit 2bfdab8735
24 changed files with 135 additions and 187 deletions
+5 -3
View File
@@ -7,6 +7,8 @@ import (
"github.com/owncloud/ocis/accounts/pkg/flagset"
"github.com/thejerf/suture"
ociscfg "github.com/owncloud/ocis/ocis-pkg/config"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/version"
@@ -127,13 +129,13 @@ type SutureService struct {
}
// NewSutureService creates a new accounts.SutureService
func NewSutureService(ctx context.Context, cfg *config.Config) SutureService {
func NewSutureService(ctx context.Context, cfg *ociscfg.Config) suture.Service {
sctx, cancel := context.WithCancel(ctx)
cfg.Context = sctx // propagate the context down to the go-micro services.
cfg.Accounts.Context = sctx // propagate the context down to the go-micro services.
return SutureService{
ctx: sctx,
cancel: cancel,
cfg: cfg,
cfg: cfg.Accounts,
}
}