@nestjs/microservices
Version:
Nest - modern, fast, powerful node.js web framework (@microservices)
11 lines (10 loc) • 436 B
TypeScript
import { KafkaParserConfig } from '../interfaces/index.js';
export declare class KafkaParser {
protected readonly keepBinary: boolean;
protected readonly maxMessageSize: number;
constructor(config?: KafkaParserConfig);
parse<T = any>(data: any): T;
decode(value: Buffer): object | string | null | Buffer;
protected decodeAsString(value: Buffer): string | null;
protected getMessageSize(data: any): number;
}