Skip to content

Commit

Permalink
Refactors connection data service (#3090)
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi authored Jan 7, 2025
1 parent 755cef4 commit 79b11fd
Show file tree
Hide file tree
Showing 60 changed files with 3,527 additions and 3,626 deletions.
14 changes: 7 additions & 7 deletions backend/gen/go/db/dbschemas/mysql/system.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions backend/internal/auth/jwt/mock_JwtValidator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions backend/internal/cmds/mgmt/serve/connect/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
authlogging_interceptor "github.com/nucleuscloud/neosync/backend/internal/connect/interceptors/auth_logging"
bookend_logging_interceptor "github.com/nucleuscloud/neosync/backend/internal/connect/interceptors/bookend"
logger_interceptor "github.com/nucleuscloud/neosync/backend/internal/connect/interceptors/logger"
"github.com/nucleuscloud/neosync/backend/internal/connectiondata"
jobhooks "github.com/nucleuscloud/neosync/backend/internal/ee/hooks/jobs"
"github.com/nucleuscloud/neosync/backend/internal/ee/rbac"
"github.com/nucleuscloud/neosync/backend/internal/ee/rbac/enforcer"
Expand Down Expand Up @@ -637,18 +638,21 @@ func serve(ctx context.Context) error {

neosynctyperegistry := neosynctypes.NewTypeRegistry(slogger)
gcpmanager := neosync_gcp.NewManager()
connectionDataService := v1alpha1_connectiondataservice.New(
&v1alpha1_connectiondataservice.Config{},
connectionService,
jobService,
awsManager,
connectiondatabuilder := connectiondata.NewConnectionDataBuilder(
sqlConnector,
sqlmanager,
pgquerier,
mysqlquerier,
mongoconnector,
sqlmanager,
awsManager,
gcpmanager,
mongoconnector,
neosynctyperegistry,
jobService,
)
connectionDataService := v1alpha1_connectiondataservice.New(
&v1alpha1_connectiondataservice.Config{},
connectionService,
connectiondatabuilder,
)
api.Handle(
mgmtv1alpha1connect.NewConnectionDataServiceHandler(
Expand Down
Loading

0 comments on commit 79b11fd

Please sign in to comment.