/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/microservices/interfaces/packet.interface.ts
22 строки
525 B
Kamil Myśliwiec
feat(): add rpc serializer and deserializer, improve performance
26 авг 2019, 22:23
Не верифицирован
26 авг 2019, 22:23
7f8aa92
Код
Авторство
О чём код?
export interface PacketId { id: string; } export interface ReadPacket<T = any> { pattern: any; data: T; } export interface WritePacket<T = any> { err?: any; response?: T; isDisposed?: boolean; status?: string; } export type OutgoingRequest = ReadPacket & PacketId; export type IncomingRequest = ReadPacket & PacketId; export type OutgoingEvent = ReadPacket; export type IncomingEvent = ReadPacket; export type IncomingResponse = WritePacket & PacketId; export type OutgoingResponse = WritePacket & PacketId;