mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-10 04:39:07 +00:00
maestro connection with microservices - clients and modules
This commit is contained in:
+42
-33
@@ -4,39 +4,44 @@ import { ConfigModule } from '@nestjs/config';
|
||||
|
||||
import { LoggerMiddleware } from './middlewares/authentication';
|
||||
|
||||
// import { InputsController } from './modules/inputs/inputs.controller';
|
||||
// import { TransformationsController } from './modules/transformations/transformations.controller';
|
||||
// import { OutputsController } from './modules/outputs/outputs.controllers';
|
||||
// import { PipelinesController } from './modules/pipelines/pipelines.controller';
|
||||
import { InputsController } from './modules/inputs/inputs.controller';
|
||||
import { TransformationsController } from './modules/transformations/transformations.controller';
|
||||
import { OutputsController } from './modules/outputs/outputs.controllers';
|
||||
import { PipelinesController } from './modules/pipelines/pipelines.controller';
|
||||
import { AuthController } from './modules/auth/auth.controller';
|
||||
import { HealthController } from './modules/health/health.controller';
|
||||
|
||||
import { InputsService } from './modules/inputs/inputs.service';
|
||||
import { TransformationsService } from './modules/transformations/transformations.service';
|
||||
import { OutputsService } from './modules/outputs/outputs.service';
|
||||
// import { PipelinesService } from './modules/pipelines/pipelines.service';
|
||||
import { PipelinesService } from './modules/pipelines/pipelines.service';
|
||||
// import { AuthService } from './modules/auth/auth.service';
|
||||
import { HealthService } from './modules/health/health.service';
|
||||
|
||||
// import { InputsClientService } from './clients/inputs/client.service';
|
||||
// import { TransformationsClientService } from './clients/transformations/client.service';
|
||||
// import { OutputsClientService } from './clients/outputs/client.service';
|
||||
// import { PipelinesClientService } from './clients/pipelines/client.service';
|
||||
import { InputsClientService } from './clients/inputs/client.service';
|
||||
import { TransformationsClientService } from './clients/transformations/client.service';
|
||||
import { OutputsClientService } from './clients/outputs/client.service';
|
||||
import { PipelinesClientService } from './clients/pipelines/client.service';
|
||||
import { AuthClientService } from './clients/auth/client.service';
|
||||
|
||||
// import { InputsClientConfiguration } from './clients/inputs/client.config';
|
||||
// import { OutputsClientConfiguration } from './clients/outputs/client.config';
|
||||
// import { TransformationsClientConfiguration } from './clients/transformations/client.config';
|
||||
import { OutputsClientConfiguration } from './clients/outputs/client.config';
|
||||
import { TransformationsClientConfiguration } from './clients/transformations/client.config';
|
||||
import { AuthClient } from './clients/auth/client.config';
|
||||
import { InputsClientConfiguration } from './clients/inputs/client.config';
|
||||
import { PipelinesClientConfiguration } from './clients/pipelines/client.config';
|
||||
|
||||
const authClient = new AuthClient();
|
||||
const inputClient = new InputsClientConfiguration();
|
||||
const outputClient = new OutputsClientConfiguration();
|
||||
const pipelineClient = new PipelinesClientConfiguration();
|
||||
const transformationClient = new TransformationsClientConfiguration();
|
||||
|
||||
@Module({
|
||||
controllers: [
|
||||
// InputsController,
|
||||
// TransformationsController,
|
||||
// OutputsController,
|
||||
// PipelinesController,
|
||||
InputsController,
|
||||
TransformationsController,
|
||||
OutputsController,
|
||||
PipelinesController,
|
||||
AuthController,
|
||||
HealthController,
|
||||
],
|
||||
@@ -44,13 +49,13 @@ const authClient = new AuthClient();
|
||||
InputsService,
|
||||
TransformationsService,
|
||||
OutputsService,
|
||||
// PipelinesService,
|
||||
PipelinesService,
|
||||
// AuthService,
|
||||
HealthService,
|
||||
// InputsClientService,
|
||||
// TransformationsClientService,
|
||||
// OutputsClientService,
|
||||
// PipelinesClientService,
|
||||
InputsClientService,
|
||||
TransformationsClientService,
|
||||
OutputsClientService,
|
||||
PipelinesClientService,
|
||||
AuthClientService,
|
||||
],
|
||||
imports: [
|
||||
@@ -59,23 +64,27 @@ const authClient = new AuthClient();
|
||||
}),
|
||||
|
||||
ClientsModule.register([
|
||||
// {
|
||||
// name: 'INPUTS_PACKAGE',
|
||||
// ...InputsClientConfiguration,
|
||||
// },
|
||||
{
|
||||
name: 'INPUTS_PACKAGE',
|
||||
...inputClient.config(),
|
||||
},
|
||||
|
||||
// {
|
||||
// name: 'TRANSFORMATIONS_PACKAGE',
|
||||
// ...TransformationsClientConfiguration,
|
||||
// },
|
||||
// {
|
||||
// name: 'OUTPUTS_PACKAGE',
|
||||
// ...OutputsClientConfiguration,
|
||||
// },
|
||||
{
|
||||
name: 'TRANSFORMATIONS_PACKAGE',
|
||||
...transformationClient.config(),
|
||||
},
|
||||
{
|
||||
name: 'OUTPUTS_PACKAGE',
|
||||
...outputClient.config(),
|
||||
},
|
||||
{
|
||||
name: 'AUTH_PACKAGE',
|
||||
...authClient.config(),
|
||||
},
|
||||
{
|
||||
name: 'PIPELINES_PACKAGE',
|
||||
...pipelineClient.config(),
|
||||
},
|
||||
]),
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user