import { Transport } from "@nestjs/microservices";

// src/config/microservice.config.ts
export interface MicroserviceClientConfig {
  name: string;
  host: string;
  port: number;
  transport?: Transport; // Optional for future protocol changes
}

export const microserviceClients: MicroserviceClientConfig[] = [
  {
    name: 'MERCHANT_SERVICE',
    host: 'localhost',
    port: 8877,
    transport: Transport.TCP
  },
  {
    name: 'MERCHANT_LOCATION',
    host: 'localhost',
    port: 8878,
    transport: Transport.TCP
  }
];