UNPKG

@jucr/nestjs-kafka-events

Version:

Lightweight, tested, straight-forward wrapper around KafkaJS and Confluent's Schema Registry.

12 lines (11 loc) 525 B
import { KafkaLogger } from '../loggers'; import { IKafkaModuleSchemaRegistryConfiguration } from '../interfaces'; import { IKafkaEvent } from '../interfaces'; import { KafkaMessage } from 'kafkajs'; export declare class KafkaAvroDeserializer { private readonly kafkaLogger; private schemaRegistry; constructor(kafkaLogger: KafkaLogger); initialize(configuration: IKafkaModuleSchemaRegistryConfiguration, randomSubject?: string): Promise<void>; deserialize(message: KafkaMessage): Promise<IKafkaEvent>; }