@alexknips/nestjs-kafka-events
Version:
Lightweight, tested, straight-forward wrapper around KafkaJS and Confluent's Schema Registry.
11 lines (10 loc) • 489 B
TypeScript
import { KafkaMessage } from 'kafkajs';
import { IKafkaEvent, IKafkaModuleSchemaRegistryConfiguration } from '../interfaces';
import { KafkaLogger } from '../loggers';
export declare class KafkaDeserializer {
private readonly kafkaLogger;
private schemaRegistry;
constructor(kafkaLogger: KafkaLogger);
initialize(configuration: IKafkaModuleSchemaRegistryConfiguration, randomSubject?: string): Promise<void>;
deserialize(message: KafkaMessage): Promise<IKafkaEvent>;
}