1 | import { Type } from '@nestjs/common';
|
2 | import { ClientProxy } from '../client';
|
3 | import { Transport } from '../enums/transport.enum';
|
4 | import { Deserializer } from './deserializer.interface';
|
5 | import { GrpcOptions, KafkaOptions, MqttOptions, NatsOptions, RedisOptions, RmqOptions } from './microservice-configuration.interface';
|
6 | import { Serializer } from './serializer.interface';
|
7 | export declare type ClientOptions = RedisOptions | NatsOptions | MqttOptions | GrpcOptions | KafkaOptions | TcpClientOptions | RmqOptions;
|
8 | export interface CustomClientOptions {
|
9 | customClass: Type<ClientProxy>;
|
10 | options?: Record<string, any>;
|
11 | }
|
12 | export interface TcpClientOptions {
|
13 | transport: Transport.TCP;
|
14 | options?: {
|
15 | host?: string;
|
16 | port?: number;
|
17 | serializer?: Serializer;
|
18 | deserializer?: Deserializer;
|
19 | };
|
20 | }
|