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